Skip to content

Commit 9133dda

Browse files
authored
bump compilers (#55)
1 parent d3644b9 commit 9133dda

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

crates/blob-explorers/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl Client {
134134
query: GetTransactionQuery,
135135
) -> reqwest::Result<T> {
136136
self.client
137-
.get(&format!("{}transactions/{}", self.baseurl, hash))
137+
.get(format!("{}transactions/{}", self.baseurl, hash))
138138
.header(reqwest::header::ACCEPT, "application/json")
139139
.query(&query)
140140
.send()
@@ -182,7 +182,7 @@ impl Client {
182182
query: GetBlockQuery,
183183
) -> reqwest::Result<T> {
184184
self.client
185-
.get(&format!("{}blocks/{}", self.baseurl, block))
185+
.get(format!("{}blocks/{}", self.baseurl, block))
186186
.header(reqwest::header::ACCEPT, "application/json")
187187
.query(&query)
188188
.send()

crates/block-explorers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ thiserror = "1.0"
3737
tracing = "0.1.37"
3838
semver = "1.0"
3939

40-
foundry-compilers = { version = "0.9", optional = true }
40+
foundry-compilers = { version = "0.10", optional = true }
4141

4242
[dev-dependencies]
4343
tempfile = "3.8"

crates/block-explorers/src/contract.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use std::{collections::HashMap, path::Path};
1414
use foundry_compilers::{
1515
artifacts::{EvmVersion, Settings},
1616
compilers::solc::SolcCompiler,
17+
solc::SolcSettings,
1718
ProjectBuilder, SolcConfig,
1819
};
1920

@@ -267,7 +268,8 @@ impl Metadata {
267268
pub fn project_builder(&self) -> Result<ProjectBuilder<SolcCompiler>> {
268269
let solc_config = SolcConfig::builder().settings(self.settings()?).build();
269270

270-
Ok(ProjectBuilder::new(Default::default()).settings(solc_config.settings))
271+
Ok(ProjectBuilder::new(Default::default())
272+
.settings(SolcSettings { settings: solc_config.settings, ..Default::default() }))
271273
}
272274

273275
/// Parses the EVM version.

0 commit comments

Comments
 (0)