chore: fix lints / solc test
This commit is contained in:
parent
c95c12e0d1
commit
19671e51de
|
@ -60,25 +60,25 @@ impl TryFrom<u64> for Chain {
|
||||||
type Error = ParseChainError;
|
type Error = ParseChainError;
|
||||||
|
|
||||||
fn try_from(chain: u64) -> Result<Chain, Self::Error> {
|
fn try_from(chain: u64) -> Result<Chain, Self::Error> {
|
||||||
match chain {
|
Ok(match chain {
|
||||||
1 => Ok(Chain::Mainnet),
|
1 => Chain::Mainnet,
|
||||||
3 => Ok(Chain::Ropsten),
|
3 => Chain::Ropsten,
|
||||||
4 => Ok(Chain::Rinkeby),
|
4 => Chain::Rinkeby,
|
||||||
5 => Ok(Chain::Goerli),
|
5 => Chain::Goerli,
|
||||||
42 => Ok(Chain::Kovan),
|
42 => Chain::Kovan,
|
||||||
100 => Ok(Chain::XDai),
|
100 => Chain::XDai,
|
||||||
137 => Ok(Chain::Polygon),
|
137 => Chain::Polygon,
|
||||||
80001 => Ok(Chain::PolygonMumbai),
|
80001 => Chain::PolygonMumbai,
|
||||||
43114 => Ok(Chain::Avalanche),
|
43114 => Chain::Avalanche,
|
||||||
43113 => Ok(Chain::AvalancheFuji),
|
43113 => Chain::AvalancheFuji,
|
||||||
11155111 => Ok(Chain::Sepolia),
|
11155111 => Chain::Sepolia,
|
||||||
1287 => Ok(Chain::Moonbeam),
|
1287 => Chain::Moonbeam,
|
||||||
1281 => Ok(Chain::MoonbeamDev),
|
1281 => Chain::MoonbeamDev,
|
||||||
1285 => Ok(Chain::Moonriver),
|
1285 => Chain::Moonriver,
|
||||||
10 => Ok(Chain::Optimism),
|
10 => Chain::Optimism,
|
||||||
69 => Ok(Chain::OptimismKovan),
|
69 => Chain::OptimismKovan,
|
||||||
_ => return Err(ParseChainError(chain.to_string())),
|
_ => return Err(ParseChainError(chain.to_string())),
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -268,10 +268,10 @@ fn can_compile_dapp_sample_with_cache() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
compiled.into_artifacts().map(|(name, _)| name).collect::<Vec<_>>(),
|
compiled.into_artifacts().map(|(name, _)| name).collect::<Vec<_>>(),
|
||||||
vec![
|
vec![
|
||||||
r#"Dapp.json:Dapp"#,
|
"Dapp.json:Dapp",
|
||||||
r#"DappTest.json:DappTest"#,
|
"DappTest.json:DappTest",
|
||||||
r#"DSTest.json:DSTest"#,
|
"DSTest.json:DSTest",
|
||||||
"NewContract"
|
"NewContract.json:NewContract"
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -281,10 +281,10 @@ fn can_compile_dapp_sample_with_cache() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
compiled.into_artifacts().map(|(name, _)| name).collect::<Vec<_>>(),
|
compiled.into_artifacts().map(|(name, _)| name).collect::<Vec<_>>(),
|
||||||
vec![
|
vec![
|
||||||
r#"DappTest.json:DappTest"#,
|
"DappTest.json:DappTest",
|
||||||
r#"NewContract.json:NewContract"#,
|
"NewContract.json:NewContract",
|
||||||
r#"DSTest.json:DSTest"#,
|
"DSTest.json:DSTest",
|
||||||
"Dapp"
|
"Dapp.json:Dapp"
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue