Skip to content

Commit

Permalink
Fix exception message (neo-project#2860)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje authored May 18, 2023
1 parent d6620cb commit 535aa20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Neo/SmartContract/ApplicationEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private ExecutionContext CallContractInternal(ContractState contract, ContractMe
{
ContractState currentContract = NativeContract.ContractManagement.GetContract(Snapshot, CurrentScriptHash);
if (currentContract?.CanCall(contract, method.Name) == false)
throw new InvalidOperationException($"Cannot Call Method {method} Of Contract {contract.Hash} From Contract {CurrentScriptHash}");
throw new InvalidOperationException($"Cannot Call Method {method.Name} Of Contract {contract.Hash} From Contract {CurrentScriptHash}");
}

if (invocationCounter.TryGetValue(contract.Hash, out var counter))
Expand Down

0 comments on commit 535aa20

Please sign in to comment.