fix(core): chainId 31337 corresponds to Anvil/Hardhat not Dev
fixes: https://github.com/foundry-rs/foundry/issues/1866, because previously we'd read chain id 31337, parse it as Dev, and then when convert it to the wrong number (1337) which would make the transaction's chain id not match the signer's
This commit is contained in:
parent
650990ae4e
commit
ae63b57106
|
@ -126,7 +126,7 @@ impl TryFrom<u64> for Chain {
|
|||
100 => Chain::XDai,
|
||||
137 => Chain::Polygon,
|
||||
1337 => Chain::Dev,
|
||||
31337 => Chain::Dev,
|
||||
31337 => Chain::AnvilHardhat,
|
||||
250 => Chain::Fantom,
|
||||
4002 => Chain::FantomTestnet,
|
||||
80001 => Chain::PolygonMumbai,
|
||||
|
|
Loading…
Reference in New Issue