aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-21 00:24:02 +0800
committerobscuren <geffobscura@gmail.com>2014-03-21 00:24:02 +0800
commitbdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148 (patch)
tree5ee93af3b10c7867c8ef96dd2fa163f7c63438a9 /ethchain
parent344e827061c896a17124a65686bdc3fbbd03d7bb (diff)
downloadgo-tangerine-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.tar.gz
go-tangerine-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.tar.zst
go-tangerine-bdc0d1b7ad4e2a4ff78f287f088c13a5d6ab2148.zip
Added AddFunds method
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/address.go6
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 {