Skip to content

Commit

Permalink
register Token new function new msg format
Browse files Browse the repository at this point in the history
  • Loading branch information
kelemeno committed Sep 19, 2024
1 parent 18167a2 commit 56b4e1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions l1-contracts/contracts/bridge/asset-router/L2AssetRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ contract L2AssetRouter is AssetRouterBase, IL2AssetRouter {
_withdrawSender(_assetId, _assetData, msg.sender, true);
}

function withdrawToken(bytes32 _assetId, bytes memory _assetData) public override {
_withdrawSender(_assetId, _assetData, msg.sender, true);
function withdrawToken(address _l2NativeToken, bytes memory _assetData) public {
bytes32 assetId = _ensureTokenRegisteredWithNTV(_l2NativeToken);
_withdrawSender(assetId, _assetData, msg.sender, true);
}

/// @notice Initiates a withdrawal by burning funds on the contract and sending the message to L1
Expand Down

0 comments on commit 56b4e1f

Please sign in to comment.