SubBalance removes amount from c's balance. It is used to remove funds from the origin account of a transfer.
(amount *big.Int)
| 251 | // SubBalance removes amount from c's balance. |
| 252 | // It is used to remove funds from the origin account of a transfer. |
| 253 | func (c *stateObject) SubBalance(amount *big.Int) { |
| 254 | if amount.Sign() == 0 { |
| 255 | return |
| 256 | } |
| 257 | c.SetBalance(new(big.Int).Sub(c.Balance(), amount)) |
| 258 | } |
| 259 | |
| 260 | func (self *stateObject) SetBalance(amount *big.Int) { |
| 261 | self.db.journal.append(balanceChange{ |
nothing calls this directly
no test coverage detected