mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 11:36:37 +00:00
Added AddFunds method
This commit is contained in:
parent
344e827061
commit
bdc0d1b7ad
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue