good morning!!!!

Skip to content
Snippets Groups Projects
Commit 1d3f43f0 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Added generic add balance method

parent d586dd90
Branches
Tags
No related merge requests found
......@@ -39,6 +39,13 @@ func (self *State) GetBalance(addr []byte) *big.Int {
return ethutil.Big0
}
func (self *State) AddBalance(addr []byte, amount *big.Int) {
stateObject := self.GetStateObject(addr)
if stateObject != nil {
stateObject.AddBalance(amount)
}
}
func (self *State) GetNonce(addr []byte) uint64 {
stateObject := self.GetStateObject(addr)
if stateObject != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment