aboutsummaryrefslogtreecommitdiff
path: root/core/evm.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-19 22:27:11 -0400
committerDeterminant <[email protected]>2020-09-19 22:27:11 -0400
commit93a7f324c06321023e2702f7989fdfad32573793 (patch)
tree801191d49eb7b82b8328264254f96604c09c8d36 /core/evm.go
parentad82b990891525a754ebfe9155292b23408c9652 (diff)
apply mulit-coin universally
Diffstat (limited to 'core/evm.go')
-rw-r--r--core/evm.go10
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
}