Skip to content

Commit a415abf

Browse files
authored
Update FxERC721ChildTunnel.sol
1 parent 5616ff7 commit a415abf

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)