Skip to content

Commit

Permalink
Rename CalculateNetWorkFee() (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeqian10 authored and vncoelho committed Jan 7, 2020
1 parent 6a91212 commit d9d54b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/neo/Wallets/Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,15 +339,15 @@ 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;
}
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;

Expand Down

0 comments on commit d9d54b5

Please sign in to comment.