Skip to content

Commit 339cb25

Browse files
authored
Merge pull request #23 from fx-portal/jdkanani-patch-1
Update FxERC721ChildTunnel.sol
2 parents 5616ff7 + a415abf commit 339cb25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contracts/examples/erc721-transfer/FxERC721ChildTunnel.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ contract FxERC721ChildTunnel is FxBaseChildTunnel, Create2, IERC721Receiver {
4545
childToken == rootToChildToken[rootToken],
4646
"FxERC721ChildTunnel: NO_MAPPED_TOKEN"
4747
);
48+
49+
// check owner of the NFT
50+
require(msg.sender == childTokenContract.ownerOf(tokenId));
4851

4952
// withdraw tokens
5053
childTokenContract.burn(tokenId);

0 commit comments

Comments
 (0)