Added addBalance to wrapped state db

This commit is contained in:
philip-morlier 2023-10-10 14:32:52 -07:00
parent 3d2f81a30c
commit 052b705632

View File

@ -200,6 +200,9 @@ func (w *WrappedStateDB) IntermediateRoot(deleteEmptyObjects bool) core.Hash {
return core.Hash(w.s.IntermediateRoot(deleteEmptyObjects))
}
func (w *WrappedStateDB) AddBalance(addr core.Address, amount *big.Int) {
w.s.AddBalance(common.Address(addr), amount)
}
type Node struct {
n *node.Node