Skip to content

Commit

Permalink
nft: fix revert
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 17, 2024
1 parent a861ef7 commit 76b14ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/developers/tutorials/nft.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ contract Universal is
uint256 amount,
bytes calldata message
) external override onlyGateway {
if (context.sender != counterparty[zrc20]) revert("Unauthorized");
if (context.sender != counterparty[zrc20]) revert Unauthorized();
(
address destination,
Expand Down Expand Up @@ -449,7 +449,7 @@ contract Connected is
address(this),
true,
address(0),
message,
abi.encode(receiver, tokenId, uri),
gasLimit
)
);
Expand Down

0 comments on commit 76b14ee

Please sign in to comment.