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

Method SetCode

core/vm/interface.go:39–39  ·  view source on GitHub ↗
(common.Address, []byte)

Source from the content-addressed store, hash-verified

37 GetCodeHash(common.Address) common.Hash
38 GetCode(common.Address) []byte
39 SetCode(common.Address, []byte)
40 GetCodeSize(common.Address) int
41
42 AddRefund(uint64)

Callers 12

ToBlockMethod · 0.65
TestDumpMethod · 0.65
TestSnapshot2Function · 0.65
SetCodeMethod · 0.65
TestUpdateLeaksFunction · 0.65
TestIntermediateLeaksFunction · 0.65
newTestActionFunction · 0.65
makeTestStateFunction · 0.65
CreateMethod · 0.65
TestCallFunction · 0.65
ExecuteFunction · 0.65
MakePreStateFunction · 0.65

Implementers 2

StateDBcore/state/statedb.go
NoopStateDBcore/vm/noop.go

Calls

no outgoing calls

Tested by 7

TestDumpMethod · 0.52
TestSnapshot2Function · 0.52
TestUpdateLeaksFunction · 0.52
TestIntermediateLeaksFunction · 0.52
newTestActionFunction · 0.52
makeTestStateFunction · 0.52
TestCallFunction · 0.52