Skip to content

Commit 9defcd2

Browse files
authored
fix: resolve etherscan api url string (#5217)
1 parent 2e18681 commit 9defcd2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: config/src/etherscan.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ impl EtherscanConfig {
163163
self,
164164
alias: Option<&str>,
165165
) -> Result<ResolvedEtherscanConfig, EtherscanConfigError> {
166-
let EtherscanConfig { chain, url, key } = self;
166+
let EtherscanConfig { chain, mut url, key } = self;
167+
168+
if let Some(url) = &mut url {
169+
*url = interpolate(url)?;
170+
}
171+
167172
let (chain, alias) = match (chain, alias) {
168173
// fill one with the other
169174
(Some(chain), None) => (Some(chain), Some(chain.to_string())),

Diff for: config/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2428,7 +2428,7 @@ impl BasicConfig {
24282428
"\
24292429
[profile.{}]
24302430
{s}
2431-
# See more config options https://github.com/foundry-rs/foundry/tree/master/config",
2431+
# See more config options https://github.com/foundry-rs/foundry/tree/master/config\n",
24322432
self.profile
24332433
))
24342434
}

0 commit comments

Comments
 (0)