Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tsnewnami committed Nov 14, 2023
1 parent 9b1bbc5 commit 7b88882
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/child/ChildERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ contract ChildERC20Bridge is
address public wIMXToken;

/**
* @notice Fallback function on recieving native IMX.
* @notice Fallback function on recieving native IMX from WIMX contract.
*/
receive() external payable {
// Revert if sender if not the wIMX token
// Revert if sender if not the wIMX token address (
// Or the wIMXToken is not set (contract not initialized)
if (msg.sender != wIMXToken || wIMXToken == address(0)) {
revert NonWrappedNativeTransfer();
Expand Down
2 changes: 1 addition & 1 deletion src/root/RootERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ contract RootERC20Bridge is
* @dev method to receive the ETH back from the WETH contract when it is unwrapped
*/
receive() external payable {
// Revert if sender if not the wIMX token
// Revert if sender is not the WETH token address
// Or the wIMXToken is not set (contract not initialized)
if (msg.sender != rootWETHToken || rootWETHToken == address(0)) {
revert NonWrappedNativeTransfer();
Expand Down

0 comments on commit 7b88882

Please sign in to comment.