Skip to content

Commit

Permalink
fix bug on assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen authored Sep 21, 2023
1 parent 3d62ba0 commit c330bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/arc2_receiver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ function nonFungibleReceived(operator, from, tokenId, ...)
end

function add_accepted_token(address)
assert(system.getSender() = system.getCreator(), "permission denied")
assert(system.getSender() == system.getCreator(), "permission denied")
accepted_tokens[address] = true
end

function transferARC2(contractId, to, tokenId, ...)
assert(system.getSender() = system.getCreator(), "permission denied")
assert(system.getSender() == system.getCreator(), "permission denied")
contract.call(contractId, "transfer", to, tokenId, ...)
end

Expand Down

0 comments on commit c330bc6

Please sign in to comment.