From 7b88882f10066620620b81fecb221f561a4bb32c Mon Sep 17 00:00:00 2001 From: James Snewin Date: Tue, 14 Nov 2023 15:54:57 +1000 Subject: [PATCH] fix comment --- src/child/ChildERC20Bridge.sol | 4 ++-- src/root/RootERC20Bridge.sol | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/child/ChildERC20Bridge.sol b/src/child/ChildERC20Bridge.sol index 48562440..04e54deb 100644 --- a/src/child/ChildERC20Bridge.sol +++ b/src/child/ChildERC20Bridge.sol @@ -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(); diff --git a/src/root/RootERC20Bridge.sol b/src/root/RootERC20Bridge.sol index 339e7f2b..4c90842c 100644 --- a/src/root/RootERC20Bridge.sol +++ b/src/root/RootERC20Bridge.sol @@ -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();