Skip to content

Commit

Permalink
update & lock solang (gakonst#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed May 13, 2022
1 parent 94cf8a8 commit 135bca4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 32 deletions.
31 changes: 3 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ethers-solc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tempfile = { version = "3.3.0", optional = true }
fs_extra = { version = "1.2.0", optional = true }
sha2 = { version = "0.9.8", default-features = false, optional = true }
dunce = "1.0.2"
solang-parser = { default-features = false, version = "0.1.12" }
solang-parser = { default-features = false, version = "=0.1.13" }
rayon = "1.5.2"
rand = { version = "0.8.5", optional = true }
path-slash = "0.1.4"
Expand Down
4 changes: 2 additions & 2 deletions ethers-solc/src/resolver/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl SolData {
Ok((units, _)) => {
for unit in units.0 {
match unit {
SourceUnitPart::PragmaDirective(loc, _, pragma, value) => {
SourceUnitPart::PragmaDirective(loc, pragma, value) => {
if pragma.name == "solidity" {
// we're only interested in the solidity version pragma
version = Some(SolDataUnit::from_loc(value.string.clone(), loc));
Expand All @@ -60,7 +60,7 @@ impl SolData {
Some(SolDataUnit::from_loc(value.string.clone(), loc));
}
}
SourceUnitPart::ImportDirective(_, import) => {
SourceUnitPart::ImportDirective(import) => {
let (import, ids, loc) = match import {
Import::Plain(s, l) => (s, vec![], l),
Import::GlobalSymbol(s, i, l) => (s, vec![(i, None)], l),
Expand Down
2 changes: 1 addition & 1 deletion ethers-solc/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ mod tests {
let (unit, _) = solang_parser::parse(s, 0).unwrap();
assert_eq!(unit.0.len(), 1);
match unit.0[0] {
SourceUnitPart::ImportDirective(_, _) => {}
SourceUnitPart::ImportDirective(_) => {}
_ => unreachable!("failed to parse import"),
}
let imports: Vec<_> = find_import_paths(s).map(|m| m.as_str()).collect();
Expand Down

0 comments on commit 135bca4

Please sign in to comment.