diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-21 00:24:02 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-21 00:24:02 +0800 |
commit | bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148 (patch) | |
tree | 5ee93af3b10c7867c8ef96dd2fa163f7c63438a9 | |
parent | 344e827061c896a17124a65686bdc3fbbd03d7bb (diff) | |
download | dexon-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.tar dexon-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.tar.gz dexon-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.tar.bz2 dexon-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.tar.lz dexon-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.tar.xz dexon-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.tar.zst dexon-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.zip |
Added AddFunds method
-rw-r--r-- | ethchain/address.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ethchain/address.go b/ethchain/address.go index aa1709f2c..f1f27a1a5 100644 --- a/ethchain/address.go +++ b/ethchain/address.go @@ -22,7 +22,11 @@ func NewAccountFromData(data []byte) *Account { } 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 { |