예제 #1
0
        public Task <TransactionReceipt> SetPermissionRequestAndWaitForReceiptAsync(string contract, byte[] permission, bool value, CancellationTokenSource cancellationToken = null)
        {
            var setPermissionFunction = new SetPermissionFunction();

            setPermissionFunction.Contract   = contract;
            setPermissionFunction.Permission = permission;
            setPermissionFunction.Value      = value;

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(setPermissionFunction, cancellationToken));
        }
예제 #2
0
        public Task <string> SetPermissionRequestAsync(string contract, byte[] permission, bool value)
        {
            var setPermissionFunction = new SetPermissionFunction();

            setPermissionFunction.Contract   = contract;
            setPermissionFunction.Permission = permission;
            setPermissionFunction.Value      = value;

            return(ContractHandler.SendRequestAsync(setPermissionFunction));
        }
예제 #3
0
 public Task <TransactionReceipt> SetPermissionRequestAndWaitForReceiptAsync(SetPermissionFunction setPermissionFunction, CancellationTokenSource cancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(setPermissionFunction, cancellationToken));
 }
예제 #4
0
 public Task <string> SetPermissionRequestAsync(SetPermissionFunction setPermissionFunction)
 {
     return(ContractHandler.SendRequestAsync(setPermissionFunction));
 }