From d2318d285d14728ef5b172a69e5eb1d2c75ca655 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 15 Jan 2022 16:53:46 +0100 Subject: [PATCH] chore(deps): bump solang (#796) * chore(deps): bump solang * fix: breaking test --- Cargo.lock | 2 +- ethers-providers/src/provider.rs | 5 ++++- ethers-solc/src/resolver.rs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8486b960..196b1d18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3369,7 +3369,7 @@ dependencies = [ [[package]] name = "solang-parser" version = "0.1.1" -source = "git+https://github.com/hyperledger-labs/solang#190f7205dd2ec50f8d930741785a79e6ddf0148b" +source = "git+https://github.com/hyperledger-labs/solang#67f1325a5aabd513289106585f97bdfe2efd647d" dependencies = [ "lalrpop", "lalrpop-util", diff --git a/ethers-providers/src/provider.rs b/ethers-providers/src/provider.rs index 516986e8..d5a9b23c 100644 --- a/ethers-providers/src/provider.rs +++ b/ethers-providers/src/provider.rs @@ -1450,9 +1450,12 @@ mod tests { #[tokio::test] #[ignore] + #[cfg(feature = "ws")] async fn test_trace_call_many() { + use ethers_core::types::H160; + // TODO: Implement ErigonInstance, so it'd be possible to test this. - let provider = Provider::new(Ws::connect("ws://127.0.0.1:8545").await.unwrap()); + let provider = Provider::new(crate::Ws::connect("ws://127.0.0.1:8545").await.unwrap()); let traces = provider .trace_call_many( vec![ diff --git a/ethers-solc/src/resolver.rs b/ethers-solc/src/resolver.rs index c6640f33..3d93eff3 100644 --- a/ethers-solc/src/resolver.rs +++ b/ethers-solc/src/resolver.rs @@ -423,7 +423,7 @@ fn parse_data(content: &str) -> SolData { Ok(units) => { for unit in units.0 { match unit { - SourceUnitPart::PragmaDirective(_, pragma, value) => { + SourceUnitPart::PragmaDirective(_, _, pragma, value) => { if pragma.name == "solidity" { // we're only interested in the solidity version pragma version = Some(value.string);