Skip to content

Commit

Permalink
use DataEncoding for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitastupin-matterlabs committed Oct 31, 2024
1 parent 9d0ffa4 commit e0b4e00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e0b4e00

Please sign in to comment.