File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,10 @@ func GetEVMCoinDisplayDenom() string {
9797
9898// setEVMCoinInfo allows to define denom and decimals of the coin used in the EVM.
9999func setEVMCoinInfo (eci EvmCoinInfo ) error {
100- if evmCoinInfo != nil {
100+ if evmCoinInfo != nil && (evmCoinInfo .Denom != eci .Denom ||
101+ evmCoinInfo .ExtendedDenom != eci .ExtendedDenom ||
102+ evmCoinInfo .DisplayDenom != eci .DisplayDenom ||
103+ evmCoinInfo .Decimals != eci .Decimals ) {
101104 return errors .New ("EVM coin info already set" )
102105 }
103106
Original file line number Diff line number Diff line change @@ -84,7 +84,10 @@ func GetEVMCoinDisplayDenom() string {
8484
8585// setTestingEVMCoinInfo allows to define denom and decimals of the coin used in the EVM.
8686func setTestingEVMCoinInfo (eci EvmCoinInfo ) error {
87- if testingEvmCoinInfo != nil {
87+ if testingEvmCoinInfo != nil && (testingEvmCoinInfo .Denom != eci .Denom ||
88+ testingEvmCoinInfo .ExtendedDenom != eci .ExtendedDenom ||
89+ testingEvmCoinInfo .DisplayDenom != eci .DisplayDenom ||
90+ testingEvmCoinInfo .Decimals != eci .Decimals ) {
8891 return errors .New ("testing EVM coin info already set. Make sure you run the configurator's ResetTestConfig before trying to set a new evm coin info" )
8992 }
9093
You can’t perform that action at this time.
0 commit comments