This commit is contained in:
tet32 2017-10-07 09:09:00 +00:00 committed by GitHub
commit 80652a50e0

View file

@ -130,8 +130,8 @@ type dbWrapper struct {
} }
// getBalance retrieves an account's balance // getBalance retrieves an account's balance
func (dw *dbWrapper) getBalance(addr common.Address) *big.Int { func (dw *dbWrapper) getBalance(addr []byte) *big.Int {
return dw.db.GetBalance(addr) return dw.db.GetBalance(common.BytesToAddress(addr))
} }
// getNonce retrieves an account's nonce // getNonce retrieves an account's nonce