fix(solc): bump solang (#861)

This commit is contained in:
Matthias Seitz 2022-02-03 21:35:46 +01:00 committed by GitHub
parent 7e4e8e200a
commit d08f3ed2d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
Cargo.lock generated
View File

@ -3441,7 +3441,7 @@ dependencies = [
[[package]] [[package]]
name = "solang-parser" name = "solang-parser"
version = "0.1.1" version = "0.1.1"
source = "git+https://github.com/hyperledger-labs/solang#4ad9d87881460fe89f2c4a0f762511f8fa445849" source = "git+https://github.com/hyperledger-labs/solang#f3e8f6fcabab91c959833cf85e3f13d327b00e38"
dependencies = [ dependencies = [
"lalrpop", "lalrpop",
"lalrpop-util", "lalrpop-util",

View File

@ -518,7 +518,7 @@ fn parse_data(content: &str) -> SolData {
let mut version = None; let mut version = None;
let mut imports = Vec::<SolDataUnit<PathBuf>>::new(); let mut imports = Vec::<SolDataUnit<PathBuf>>::new();
match solang_parser::parse(content, 0) { match solang_parser::parse(content, 0) {
Ok(units) => { Ok((units, _)) => {
for unit in units.0 { for unit in units.0 {
match unit { match unit {
SourceUnitPart::PragmaDirective(loc, _, pragma, value) => { SourceUnitPart::PragmaDirective(loc, _, pragma, value) => {