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

Method CallingContext

smartcontract/smart_contract.go:81–86  ·  view source on GitHub ↗

CallingContext return smart contract caller context

()

Source from the content-addressed store, hash-verified

79
80// CallingContext return smart contract caller context
81func (this *SmartContract) CallingContext() *context.Context {
82 if len(this.Contexts) < 2 {
83 return nil
84 }
85 return this.Contexts[len(this.Contexts)-2]
86}
87
88// EntryContext return smart contract entry entrance context
89func (this *SmartContract) EntryContext() *context.Context {

Callers 1

checkContractAddressMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected