From e0b4e0053fcccae129982471fac32286e12b4421 Mon Sep 17 00:00:00 2001 From: Nikita Stupin <178824211+nikitastupin-matterlabs@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:13:36 +0900 Subject: [PATCH] use DataEncoding for consistency --- l1-contracts/contracts/bridge/asset-router/L1AssetRouter.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l1-contracts/contracts/bridge/asset-router/L1AssetRouter.sol b/l1-contracts/contracts/bridge/asset-router/L1AssetRouter.sol index cf2ab966c..17e8dfc73 100644 --- a/l1-contracts/contracts/bridge/asset-router/L1AssetRouter.sol +++ b/l1-contracts/contracts/bridge/asset-router/L1AssetRouter.sol @@ -144,7 +144,7 @@ contract L1AssetRouter is AssetRouterBase, IL1AssetRouter, ReentrancyGuard { bytes32 _assetRegistrationData, address _assetDeploymentTracker ) external onlyOwner { - bytes32 assetId = keccak256(abi.encode(block.chainid, _assetDeploymentTracker, _assetRegistrationData)); + bytes32 assetId = DataEncoding.encodeAssetId(block.chainid, _assetRegistrationData, _assetDeploymentTracker); assetDeploymentTracker[assetId] = _assetDeploymentTracker; emit AssetDeploymentTrackerSet(assetId, _assetDeploymentTracker, _assetRegistrationData); }