Skip to content

Commit

Permalink
update sendETH return value
Browse files Browse the repository at this point in the history
  • Loading branch information
tremarkley committed Nov 18, 2024
1 parent fb46063 commit 9948477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/interoperable-ether-transfers.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ event RelayETH(address indexed from, address indexed to, uint256 amount, uint256
/// @notice Sends ETH to some target address on another chain.
/// @param _to Address to send ETH to.
/// @param _chainId Chain ID of the destination chain.
function sendETH(address _to, uint256 _chainId) public payable {
function sendETH(address _to, uint256 _chainId) public payable returns (bytes32 msgHash_) {
if (_to == address(0)) revert ZeroAddress();
if (IL1Block(Predeploys.L1_BLOCK_ATTRIBUTES).isCustomGasToken()) {
Expand All @@ -71,7 +71,7 @@ function sendETH(address _to, uint256 _chainId) public payable {
IETHLiquidity(Predeploys.ETH_LIQUIDITY).burn{ value: msg.value }();
// Send message to other chain.
IL2ToL2CrossDomainMessenger(Predeploys.L2_TO_L2_CROSS_DOMAIN_MESSENGER).sendMessage({
msgHash_ = IL2ToL2CrossDomainMessenger(Predeploys.L2_TO_L2_CROSS_DOMAIN_MESSENGER).sendMessage({
_destination: _chainId,
_target: address(this),
_message: abi.encodeCall(this.relayETH, (msg.sender, _to, msg.value))
Expand Down

0 comments on commit 9948477

Please sign in to comment.