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

Method SetState

core/state/statedb.go:312–317  ·  view source on GitHub ↗
(addr common.Address, key, value common.Hash)

Source from the content-addressed store, hash-verified

310}
311
312func (self *StateDB) SetState(addr common.Address, key, value common.Hash) {
313 stateObject := self.GetOrNewStateObject(addr)
314 if stateObject != nil {
315 stateObject.SetState(self.db, key, value)
316 }
317}
318
319// Suicide marks the given account as suicided.
320// This clears the account balance.

Callers

nothing calls this directly

Calls 2

GetOrNewStateObjectMethod · 0.95
SetStateMethod · 0.65

Tested by

no test coverage detected