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

Method GetNonce

core/state/statedb.go:199–206  ·  view source on GitHub ↗
(addr common.Address)

Source from the content-addressed store, hash-verified

197}
198
199func (self *StateDB) GetNonce(addr common.Address) uint64 {
200 stateObject := self.getStateObject(addr)
201 if stateObject != nil {
202 return stateObject.Nonce()
203 }
204
205 return 0
206}
207
208func (self *StateDB) GetCode(addr common.Address) []byte {
209 stateObject := self.getStateObject(addr)

Callers

nothing calls this directly

Calls 2

getStateObjectMethod · 0.95
NonceMethod · 0.65

Tested by

no test coverage detected