From d9d54b5dfe44e41561ff729b08b9b7caf1f0d6b9 Mon Sep 17 00:00:00 2001 From: joeqian Date: Tue, 7 Jan 2020 21:06:05 +0800 Subject: [PATCH] Rename CalculateNetWorkFee() (#1401) --- src/neo/Wallets/Wallet.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/neo/Wallets/Wallet.cs b/src/neo/Wallets/Wallet.cs index 1752372bec..892cc40c1c 100644 --- a/src/neo/Wallets/Wallet.cs +++ b/src/neo/Wallets/Wallet.cs @@ -339,7 +339,7 @@ private Transaction MakeTransaction(StoreView snapshot, byte[] script, Transacti { byte[] witness_script = GetAccount(hash)?.Contract?.Script ?? snapshot.Contracts.TryGet(hash)?.Script; if (witness_script is null) continue; - tx.NetworkFee += CalculateNetWorkFee(witness_script, ref size); + tx.NetworkFee += CalculateNetworkFee(witness_script, ref size); } tx.NetworkFee += size * NativeContract.Policy.GetFeePerByte(snapshot); if (value >= tx.SystemFee + tx.NetworkFee) return tx; @@ -347,7 +347,7 @@ private Transaction MakeTransaction(StoreView snapshot, byte[] script, Transacti throw new InvalidOperationException("Insufficient GAS"); } - public static long CalculateNetWorkFee(byte[] witness_script, ref int size) + public static long CalculateNetworkFee(byte[] witness_script, ref int size) { long networkFee = 0;