generated from ScopeLift/foundry-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c39280f
commit d4b59e6
Showing
9 changed files
with
176 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {WormholeL1ERC20Bridge} from "src/WormholeL1ERC20Bridge.sol"; | ||
|
||
contract L1ERC20BridgeHarness is WormholeL1ERC20Bridge { | ||
constructor( | ||
address _l1Token, | ||
address _l1Relayer, | ||
address _l1Governor, | ||
uint16 _sourceId, | ||
uint16 _targetId | ||
) WormholeL1ERC20Bridge(_l1Token, _l1Relayer, _l1Governor, _sourceId, _targetId) {} | ||
|
||
function exposed_withdraw(address account, uint256 amount) public { | ||
_withdraw(account, amount); | ||
} | ||
|
||
function exposed_receiveWithdrawalWormholeMessages( | ||
bytes memory payload, | ||
bytes[] memory additionalVaas, | ||
bytes32 callerAddr, | ||
uint16 sourceChain, | ||
bytes32 deliveryHash | ||
) public { | ||
_receiveWithdrawalWormholeMessages( | ||
payload, additionalVaas, callerAddr, sourceChain, deliveryHash | ||
); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.