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 TestGetStoragePrice()
        {
            byte[] testScript = NativeContract.Policy.Hash.MakeScript("getStoragePrice");
            UT_TransactionManager.MockInvokeScript(rpcClientMock, testScript, new ContractParameter {
                Type = ContractParameterType.Integer, Value = new BigInteger(100000)
            });

            var result = await policyAPI.GetStoragePriceAsync();

            Assert.AreEqual(100000u, result);
        }