Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Dec 8, 2020
1 parent c903184 commit 882a721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/Template.NEP17.CSharp/NEP17.Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public static void OnPayment(UInt160 from, BigInteger amount, object data)
{
if (AssetStorage.GetPaymentStatus())
{
bool isNeo = ExecutionEngine.CallingScriptHash != NEO.Hash;
bool isGas = ExecutionEngine.CallingScriptHash != GAS.Hash;
bool isNeo = ExecutionEngine.CallingScriptHash == NEO.Hash;
bool isGas = ExecutionEngine.CallingScriptHash == GAS.Hash;

if (!isNeo && !isGas) throw new Exception("Wrong calling script hash");

Expand Down

0 comments on commit 882a721

Please sign in to comment.