MCPcopy
hub / github.com/bnb-chain/bsc / UpdateContractCode

Method UpdateContractCode

core/state/database.go:102–102  ·  view source on GitHub ↗

UpdateContractCode abstracts code write to the trie. It is expected to be moved to the stateWriter interface when the latter is ready.

(address common.Address, codeHash common.Hash, code []byte)

Source from the content-addressed store, hash-verified

100 // UpdateContractCode abstracts code write to the trie. It is expected
101 // to be moved to the stateWriter interface when the latter is ready.
102 UpdateContractCode(address common.Address, codeHash common.Hash, code []byte) error
103
104 // DeleteStorage removes any existing value for key from the trie. If a node
105 // was not found in the database, a trie.MissingNodeError is returned.

Callers 1

updateStateObjectMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected