CallingContext return smart contract caller context
()
| 79 | |
| 80 | // CallingContext return smart contract caller context |
| 81 | func (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 |
| 89 | func (this *SmartContract) EntryContext() *context.Context { |
no outgoing calls
no test coverage detected