Skip to content

Commit

Permalink
make wrap function names consistent
Browse files Browse the repository at this point in the history
Signed-off-by: bennett <[email protected]>
  • Loading branch information
bmzig committed Nov 6, 2024
1 parent 53bc631 commit 51b9c4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/chain-adapters/l2/Arbitrum_WithdrawalHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ contract Arbitrum_WithdrawalHelper is WithdrawalHelperBase {
if (l2Token == address(usdcToken) && _isCCTPEnabled()) {
_transferUsdc(TOKEN_RECIPIENT, amountToReturn);
} else {
if (l2Token == address(WRAPPED_NATIVE_TOKEN)) _depositNativeToken();
if (l2Token == address(WRAPPED_NATIVE_TOKEN)) _wrapNativeToken();
// Otherwise, we use the Arbitrum ERC20 Gateway router.
ArbitrumL2ERC20GatewayLike tokenBridge = ArbitrumL2ERC20GatewayLike(L2_TOKEN_GATEWAY);
// If the gateway router's expected L2 token address does not match then revert. This check does not actually
Expand Down
2 changes: 1 addition & 1 deletion contracts/chain-adapters/l2/Ovm_WithdrawalHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ contract Ovm_WithdrawalHelper is WithdrawalHelperBase {
// Wrap the contract's balance of the native token if we are withdrawing the L2's native token. We need wrap the contract's balance
// and then unwrap the amount to send to account for cases where `amountToReturn` is greater than the contract's native token balance
// and wrapped native token balance, but less than their sum.
_depositNativeToken();
_wrapNativeToken();
WETH9Interface(l2Token).withdraw(amountToReturn); // Unwrap into ETH.
l2Token = l2Eth; // Set the l2Token to ETH.
IL2ERC20Bridge(Lib_PredeployAddresses.L2_STANDARD_BRIDGE).withdrawTo{ value: amountToReturn }(
Expand Down
2 changes: 1 addition & 1 deletion contracts/chain-adapters/l2/WithdrawalHelperBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ abstract contract WithdrawalHelperBase is CircleCCTPAdapter, MultiCaller, UUPSUp
/*
* @notice Wraps the contract's entire balance of the native token.
*/
function _depositNativeToken() internal virtual {
function _wrapNativeToken() internal virtual {
if (address(this).balance > 0) WRAPPED_NATIVE_TOKEN.deposit{ value: address(this).balance }();
}

Expand Down

0 comments on commit 51b9c4f

Please sign in to comment.