Esempio n. 1
0
        internal ContractTask CallFromNativeContract(UInt160 callingScriptHash, UInt160 hash, string method, params StackItem[] args)
        {
            ExecutionContext      context_new = CallContractInternal(hash, method, CallFlags.All, false, args);
            ExecutionContextState state       = context_new.GetState <ExecutionContextState>();

            state.CallingScriptHash = callingScriptHash;
            ContractTask task = new ContractTask();

            contractTasks.Add(context_new, task.GetAwaiter());
            return(task);
        }
Esempio n. 2
0
 static ContractTask()
 {
     CompletedTask = new ContractTask();
     CompletedTask.GetAwaiter().SetResult();
 }