From e8d59a9dfbb326ced7c09f713d01af7c6f88629d Mon Sep 17 00:00:00 2001 From: Shargon Date: Thu, 30 Jul 2020 11:10:43 +0200 Subject: [PATCH] Fix fee --- src/neo/Wallets/Wallet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neo/Wallets/Wallet.cs b/src/neo/Wallets/Wallet.cs index 93f6fd6e92..6f685433d4 100644 --- a/src/neo/Wallets/Wallet.cs +++ b/src/neo/Wallets/Wallet.cs @@ -382,7 +382,7 @@ private Transaction MakeTransaction(StoreView snapshot, byte[] script, Signer[] public static long CalculateNetworkFee(StoreView snapshot, Transaction tx, ContractState contract, ref int size) { // Empty verification scripts and PACK 0 as invocation - size += Array.Empty().GetVarSize() + IO.Helper.GetVarSize(2); + size += Array.Empty().GetVarSize() + (IO.Helper.GetVarSize(2) + 2); // Check verify cost ContractMethodDescriptor verify = contract.Manifest.Abi.GetMethod("verify");