aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2020-07-01 17:29:39 -0400
committerDeterminant <tederminant@gmail.com>2020-07-01 17:29:39 -0400
commit2d396b3c69a26e4096ccb376c012911d299c68c7 (patch)
treefdf0269f63598620db2c26459e596727df7c0d02 /core
parenta00cf4e6318e0dcda72725995653011c545e13ff (diff)
make sure getBalance() works
Diffstat (limited to 'core')
-rw-r--r--core/genesis.go1
-rw-r--r--core/vm/instructions.go2
2 files changed, 0 insertions, 3 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 7378a53..ef490bf 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -266,7 +266,6 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block {
}
if account.MCBalance != nil {
statedb.ForceEnableMultiCoin(addr)
- fmt.Println("enable", addr.Hex())
for coinID, value := range account.MCBalance {
statedb.AddBalanceMultiCoin(addr, coinID, value)
}
diff --git a/core/vm/instructions.go b/core/vm/instructions.go
index 91233b3..ecdccbd 100644
--- a/core/vm/instructions.go
+++ b/core/vm/instructions.go
@@ -18,7 +18,6 @@ package vm
import (
"errors"
- "fmt"
"math/big"
"github.com/ava-labs/coreth/core/types"
@@ -418,7 +417,6 @@ func opBalance(pc *uint64, interpreter *EVMInterpreter, contract *Contract, memo
func opBalanceMultiCoin(pc *uint64, interpreter *EVMInterpreter, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
addr, cid := stack.pop(), stack.pop()
- fmt.Println(addr, cid)
stack.push(interpreter.evm.StateDB.GetBalanceMultiCoin(common.BigToAddress(addr), common.BigToHash(cid)))
return nil, nil
}