Skip to content

Commit bd466aa

Browse files
committed
IWETH addition
1 parent bdb7378 commit bd466aa

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/interfaces/ITokenBridge.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pragma solidity ^0.8.0;
55

6-
// import "./IWETH.sol";
6+
import "./IWETH.sol";
77
import "./IWormhole.sol";
88

99
interface ITokenBridge {
@@ -149,7 +149,7 @@ interface ITokenBridge {
149149

150150
function tokenImplementation() external view returns (address);
151151

152-
// function WETH() external view returns (IWETH);
152+
function WETH() external view returns (IWETH);
153153

154154
function outstandingBridged(address token) external view returns (uint256);
155155

src/interfaces/IWETH.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// contracts/Bridge.sol
2+
// SPDX-License-Identifier: Apache 2
3+
4+
pragma solidity ^0.8.0;
5+
6+
import "./IERC20.sol";
7+
8+
interface IWETH is IERC20 {
9+
function deposit() external payable;
10+
function withdraw(uint amount) external;
11+
}

0 commit comments

Comments
 (0)