Skip to content

Commit

Permalink
Update src/neo/Wallets/Wallet.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Jan 16, 2021
1 parent 150ae61 commit 801e52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/Wallets/Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public long CalculateNetworkFee(StoreView snapshot, Transaction tx)
if (contract is null) continue;
var md = contract.Manifest.Abi.GetMethod("verify", 0);
if (md is null)
throw new ArgumentException($"The smart contract {contract.Hash} haven't got verify method");
throw new ArgumentException($"The smart contract {contract.Hash} haven't got verify method without arguments");
if (md.ReturnType != ContractParameterType.Boolean)
throw new ArgumentException("The verify method doesn't return boolean value.");

Expand Down

0 comments on commit 801e52f

Please sign in to comment.