From 44499ae008c48b39595525719996da460116c437 Mon Sep 17 00:00:00 2001 From: Options Eskimo <78507171+optionseskimo@users.noreply.github.com> Date: Sat, 29 Jan 2022 19:36:22 +0000 Subject: [PATCH] feat(chain): add BSC networks to the is_legacy helper (#843) also fix formatting --- ethers-core/src/types/chain.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ethers-core/src/types/chain.rs b/ethers-core/src/types/chain.rs index 4f70e107..c31c45ba 100644 --- a/ethers-core/src/types/chain.rs +++ b/ethers-core/src/types/chain.rs @@ -124,7 +124,12 @@ impl Chain { // TODO: Add other chains which do not support EIP1559. matches!( self, - Chain::Optimism | Chain::OptimismKovan | Chain::Fantom | Chain::FantomTestnet + Chain::Optimism | + Chain::OptimismKovan | + Chain::Fantom | + Chain::FantomTestnet | + Chain::BinanceSmartChain | + Chain::BinanceSmartChainTestnet ) } }