Skip to content

Commit

Permalink
fix CalculateNetworkFee (#906)
Browse files Browse the repository at this point in the history
* fix CalculateNetworkFee

* fix in another way

* format
  • Loading branch information
Jim8y authored May 11, 2024
1 parent 28f2d35 commit 0c58069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RpcServer/RpcServer.Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected virtual JToken CalculateNetworkFee(JArray _params)
JObject account = new();
var networkfee = Wallets.Helper.CalculateNetworkFee(
tx.AsSerializable<Transaction>(), system.StoreView, system.Settings,
wallet is not null ? a => wallet.GetAccount(a).Contract.Script : null);
wallet is not null ? a => wallet.GetAccount(a).Contract.Script : _ => null);
account["networkfee"] = networkfee.ToString();
return account;
}
Expand Down

0 comments on commit 0c58069

Please sign in to comment.