// Copyright 2021-2022, Offchain Labs, Inc. // For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE // SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; interface IWETH9 { function deposit() external payable; function withdraw( uint256 _amount ) external; } contract TestWETH9 is ERC20, IWETH9 { constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) {} function deposit() external payable override { _mint(msg.sender, msg.value); } function withdraw( uint256 _amount ) external override { _burn(msg.sender, _amount); payable(address(msg.sender)).transfer(_amount); } }