From d08f3ed2d4d5a0291e999a89ad410399c2d7dbd1 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 3 Feb 2022 21:35:46 +0100 Subject: [PATCH] fix(solc): bump solang (#861) --- Cargo.lock | 2 +- ethers-solc/src/resolver.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 833b7f38..ae46565a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3441,7 +3441,7 @@ dependencies = [ [[package]] name = "solang-parser" version = "0.1.1" -source = "git+https://github.com/hyperledger-labs/solang#4ad9d87881460fe89f2c4a0f762511f8fa445849" +source = "git+https://github.com/hyperledger-labs/solang#f3e8f6fcabab91c959833cf85e3f13d327b00e38" dependencies = [ "lalrpop", "lalrpop-util", diff --git a/ethers-solc/src/resolver.rs b/ethers-solc/src/resolver.rs index fce1c88d..0bc10f86 100644 --- a/ethers-solc/src/resolver.rs +++ b/ethers-solc/src/resolver.rs @@ -518,7 +518,7 @@ fn parse_data(content: &str) -> SolData { let mut version = None; let mut imports = Vec::>::new(); match solang_parser::parse(content, 0) { - Ok(units) => { + Ok((units, _)) => { for unit in units.0 { match unit { SourceUnitPart::PragmaDirective(loc, _, pragma, value) => {