Skip to content

Commit

Permalink
loosen [ContractPermission("*", "*")] check
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecate2 committed Sep 6, 2024
1 parent b42620e commit 68367d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fairy.Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ protected static Witness[] WitnessesFromJson(JArray _params)
if (baseException != null)
{
returned = baseException.StackTrace + "\n" + baseException.Message;
if (returned.Contains("Cannot Call Method Neo.SmartContract.Manifest.ContractMethodDescriptor"))
if (returned.Contains("Cannot Call Method "))
returned += "\n!!!Check whether you have written [ContractPermission(\"*\", \"*\")] in your contract!!!";
return returned;
}
Expand Down

0 comments on commit 68367d9

Please sign in to comment.