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

Method ContractCode

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

ContractCode retrieves a particular contract's code.

(addrHash, codeHash common.Hash)

Source from the content-addressed store, hash-verified

51
52 // ContractCode retrieves a particular contract's code.
53 ContractCode(addrHash, codeHash common.Hash) ([]byte, error)
54
55 // ContractCodeSize retrieves a particular contracts code's size.
56 ContractCodeSize(addrHash, codeHash common.Hash) (int, error)

Callers 2

CodeMethod · 0.65
stepMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected