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

@ -199,7 +199,10 @@ func (w *WrappedStateDB) SlotInAccessList(addr core.Address, slot core.Hash) (ad
func (w *WrappedStateDB) IntermediateRoot(deleteEmptyObjects bool) core.Hash { func (w *WrappedStateDB) IntermediateRoot(deleteEmptyObjects bool) core.Hash {
return core.Hash(w.s.IntermediateRoot(deleteEmptyObjects)) 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 { type Node struct {
n *node.Node n *node.Node