mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
Fix the getBalance method for the ability to use it in debug_traceTransaction
This commit is contained in:
parent
7a045af05b
commit
583435eabb
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue