From e35cd91ae988ff0691577b56ef9602f7c9923109 Mon Sep 17 00:00:00 2001 From: Vincent Geddes <117534+vgeddes@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:29:55 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Alistair Singh --- contracts/src/Initializer.sol | 3 ++- contracts/src/storage/AssetsStorage.sol | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/src/Initializer.sol b/contracts/src/Initializer.sol index 091da36eae..16dc2ea70e 100644 --- a/contracts/src/Initializer.sol +++ b/contracts/src/Initializer.sol @@ -47,9 +47,10 @@ library Initializer { UD60x18 multiplier; /// @dev Optional rescueOperator address rescueOperator; + /// @dev The WETH address used for wrapping ETH + address weth; uint8 foreignTokenDecimals; uint128 maxDestinationFee; - address weth; } function initialize(bytes calldata data) external { diff --git a/contracts/src/storage/AssetsStorage.sol b/contracts/src/storage/AssetsStorage.sol index 94a9183a8b..050f0d75bc 100644 --- a/contracts/src/storage/AssetsStorage.sol +++ b/contracts/src/storage/AssetsStorage.sol @@ -19,6 +19,7 @@ library AssetsStorage { uint256 registerTokenFee; // Foreign token registry by token ID mapping(bytes32 foreignID => address) tokenAddressOf; + address weth; uint8 foreignTokenDecimals; // The maximum fee that can be sent to a destination parachain to pay for execution (DOT). // Has two functions: @@ -26,7 +27,6 @@ library AssetsStorage { // * Prevents users from mistakenly providing too much fees, which would drain AssetHub's // sovereign account here on Ethereum. uint128 maxDestinationFee; - address weth; } bytes32 internal constant SLOT = keccak256("org.snowbridge.storage.assets");