Skip to content

Commit 68a08b9

Browse files
committed
Merge main to withdraw-to and add interfaces to fxTokens
2 parents f75a27b + 339cb25 commit 68a08b9

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

contracts/examples/erc721-transfer/FxERC721ChildTunnel.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ contract FxERC721ChildTunnel is FxBaseChildTunnel, Create2, IERC721Receiver {
129129
"FxERC721ChildTunnel: NO_MAPPED_TOKEN"
130130
);
131131

132+
require(msg.sender == childTokenContract.ownerOf(tokenId));
133+
132134
// withdraw tokens
133135
childTokenContract.burn(tokenId);
134136

contracts/tokens/IFxERC1155.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.0;
33

4-
interface IFxERC1155 {
4+
import {IERC1155} from "../lib/IERC1155.sol";
5+
6+
interface IFxERC1155 is IERC1155 {
57
function fxManager() external returns (address);
68

79
function initialize(

contracts/tokens/IFxERC20.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.0;
33

4-
interface IFxERC20 {
4+
import {IERC20} from "../lib/IERC20.sol";
5+
6+
interface IFxERC20 is IERC20 {
57
function fxManager() external returns (address);
68

79
function connectedToken() external returns (address);

contracts/tokens/IFxERC721.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.0;
33

4-
interface IFxERC721 {
4+
import {IERC721} from "../lib/IERC721.sol";
5+
6+
interface IFxERC721 is IERC721 {
57
function fxManager() external returns (address);
68

79
function connectedToken() external returns (address);

0 commit comments

Comments
 (0)