import { Network , StoreAccount , WalletId } from '@types' ; const DISABLED_WALLETS = [ WalletId . WALLETCONNECT ] ; const featureFlagName = 'MYC_EIP1559' ; export const getEIP1559FeatureFlag = ( ) => { const ls = localStorage . getItem ( featureFlagName ) ; return ls !== 'false' ; } ; export const setEIP1559FeatureFlag = ( value ) => { localStorage . setItem ( featureFlagName , value . toString ( ) ) ; } ; export const isEIP1559Supported = ( network , account ) => { return ( getEIP1559FeatureFlag ( ) && network . supportsEIP1559 && ! DISABLED_WALLETS . includes ( account . wallet ) ) ; } ;