Retrieve the balance from the given address or 0 if object not found
(addr common.Address)
| 189 | |
| 190 | // Retrieve the balance from the given address or 0 if object not found |
| 191 | func (self *StateDB) GetBalance(addr common.Address) *big.Int { |
| 192 | stateObject := self.getStateObject(addr) |
| 193 | if stateObject != nil { |
| 194 | return stateObject.Balance() |
| 195 | } |
| 196 | return common.Big0 |
| 197 | } |
| 198 | |
| 199 | func (self *StateDB) GetNonce(addr common.Address) uint64 { |
| 200 | stateObject := self.getStateObject(addr) |
nothing calls this directly
no test coverage detected