Fix the getBalance method for the ability to use it in debug_traceTransaction

This commit is contained in:
Viktor 2017-10-07 12:03:33 +03:00
parent 7a045af05b
commit 583435eabb

View file

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