Commit bdc0d1b7 authored by obscuren's avatar obscuren

Added AddFunds method

parent 344e8270
...@@ -22,7 +22,11 @@ func NewAccountFromData(data []byte) *Account { ...@@ -22,7 +22,11 @@ func NewAccountFromData(data []byte) *Account {
} }
func (a *Account) AddFee(fee *big.Int) { func (a *Account) AddFee(fee *big.Int) {
a.Amount.Add(a.Amount, fee) a.AddFunds(fee)
}
func (a *Account) AddFunds(funds *big.Int) {
a.Amount.Add(a.Amount, funds)
} }
func (a *Account) RlpEncode() []byte { func (a *Account) RlpEncode() []byte {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment