From 583435eabb8b37a5dcdb54e04f7d5d29ace9751e Mon Sep 17 00:00:00 2001 From: Viktor Date: Sat, 7 Oct 2017 12:03:33 +0300 Subject: [PATCH] Fix the getBalance method for the ability to use it in debug_traceTransaction --- internal/ethapi/tracer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ethapi/tracer.go b/internal/ethapi/tracer.go index 0516265270..b935c12881 100644 --- a/internal/ethapi/tracer.go +++ b/internal/ethapi/tracer.go @@ -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