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

Method GetContractState

core/ledger/ledger.go:173–175  ·  view source on GitHub ↗
(contractHash common.Address)

Source from the content-addressed store, hash-verified

171}
172
173func (self *Ledger) GetContractState(contractHash common.Address) (*payload.DeployCode, error) {
174 return self.ldgStore.GetContractState(contractHash)
175}
176
177func (self *Ledger) GetMerkleProof(proofHeight, rootHeight uint32) ([]common.Uint256, error) {
178 return self.ldgStore.GetMerkleProof(proofHeight, rootHeight)

Callers

nothing calls this directly

Calls 1

GetContractStateMethod · 0.65

Tested by

no test coverage detected