提交 1d3f43f0 编写于 作者: O obscuren

Added generic add balance method

上级 d586dd90
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册