MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetContractStateFromStore

Function GetContractStateFromStore

http/base/actor/ledger.go:79–82  ·  view source on GitHub ↗

GetContractStateFromStore from ledger

(hash common.Address)

Source from the content-addressed store, hash-verified

77
78//GetContractStateFromStore from ledger
79func GetContractStateFromStore(hash common.Address) (*payload.DeployCode, error) {
80 hash = updateNativeSCAddr(hash)
81 return ledger.DefLedger.GetContractState(hash)
82}
83
84//GetTxnWithHeightByTxHash from ledger
85func GetTxnWithHeightByTxHash(hash common.Uint256) (uint32, *types.Transaction, error) {

Callers

nothing calls this directly

Calls 2

updateNativeSCAddrFunction · 0.85
GetContractStateMethod · 0.65

Tested by

no test coverage detected