MCPcopy Create free account
hub / github.com/CPChain/chain / setBalance

Method setBalance

core/state/state_object.go:268–270  ·  view source on GitHub ↗
(amount *big.Int)

Source from the content-addressed store, hash-verified

266}
267
268func (self *stateObject) setBalance(amount *big.Int) {
269 self.data.Balance = amount
270}
271
272// Return the gas back to the origin. Used by the Virtual machine or Closures
273func (c *stateObject) ReturnGas(gas *big.Int) {}

Callers 4

SetBalanceMethod · 0.95
CreateAccountMethod · 0.80
revertMethod · 0.80
revertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected