diff options
author | Determinant <[email protected]> | 2020-09-19 22:27:11 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-09-19 22:27:11 -0400 |
commit | 93a7f324c06321023e2702f7989fdfad32573793 (patch) | |
tree | 801191d49eb7b82b8328264254f96604c09c8d36 /core/evm.go | |
parent | ad82b990891525a754ebfe9155292b23408c9652 (diff) |
apply mulit-coin universally
Diffstat (limited to 'core/evm.go')
-rw-r--r-- | core/evm.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/core/evm.go b/core/evm.go index 74891d7..78f36e0 100644 --- a/core/evm.go +++ b/core/evm.go @@ -23,7 +23,7 @@ import ( "github.com/ava-labs/coreth/core/types" "github.com/ava-labs/coreth/core/vm" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + //"github.com/ethereum/go-ethereum/log" ) // ChainContext supports retrieving headers and consensus parameters from the @@ -105,14 +105,6 @@ func CanTransferMC(db vm.StateDB, addr common.Address, to common.Address, coinID if coinID == nil { return 0 } - if !db.IsMultiCoin(addr) { - err := db.EnableMultiCoin(addr) - log.Debug("try to enable MC", "addr", addr.Hex(), "err", err) - } - if !(db.IsMultiCoin(addr) && db.IsMultiCoin(to)) { - // incompatible - return -1 - } if db.GetBalanceMultiCoin(addr, *coinID).Cmp(amount) >= 0 { return 0 } |