Example #1
0
 internal void Run()
 {
     Console.WriteLine("Get Fee Factor: " + policyAPI.GetExecFeeFactorAsync().Result);
     Console.WriteLine("Get Storage Price: " + policyAPI.GetStoragePriceAsync().Result);
     Console.WriteLine("Get Network Fee Per Byte: " + policyAPI.GetFeePerByteAsync().Result);
     Console.WriteLine("Get Ploicy Blocked Accounts: " + policyAPI.IsBlockedAsync(Neo.SmartContract.Native.NativeContract.GAS.Hash).Result);
 }
Example #2
0
        public async Task TestIsBlocked()
        {
            byte[] testScript = NativeContract.Policy.Hash.MakeScript("isBlocked", UInt160.Zero);
            UT_TransactionManager.MockInvokeScript(rpcClientMock, testScript, new ContractParameter {
                Type = ContractParameterType.Boolean, Value = true
            });
            var result = await policyAPI.IsBlockedAsync(UInt160.Zero);

            Assert.AreEqual(true, result);
        }