From 28aa2c2f2221c7e78d3e63946f1cde0f7b63f57c Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Fri, 6 Dec 2024 13:01:01 -0800 Subject: [PATCH] Change storage layout for trusted signers --- lazer/contracts/evm/src/PythLazer.sol | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lazer/contracts/evm/src/PythLazer.sol b/lazer/contracts/evm/src/PythLazer.sol index dcfe50fb2..b2b72480b 100644 --- a/lazer/contracts/evm/src/PythLazer.sol +++ b/lazer/contracts/evm/src/PythLazer.sol @@ -5,9 +5,8 @@ import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; contract PythLazer is OwnableUpgradeable, UUPSUpgradeable { - TrustedSignerInfo[2] private deprecatedTrustedSigners; - uint256 public verification_fee; TrustedSignerInfo[100] internal trustedSigners; + uint256 public verification_fee; struct TrustedSignerInfo { address pubkey; @@ -22,16 +21,7 @@ contract PythLazer is OwnableUpgradeable, UUPSUpgradeable { } function migrate() public onlyOwner { - require( - trustedSigners.length >= deprecatedTrustedSigners.length, - "trustedSigners cannot be migrated to smaller array" - ); - verification_fee = 1 wei; - for (uint8 i = 0; i < deprecatedTrustedSigners.length; i++) { - trustedSigners[i].pubkey = deprecatedTrustedSigners[i].pubkey; - trustedSigners[i].expiresAt = deprecatedTrustedSigners[i].expiresAt; - } } function _authorizeUpgrade(address) internal override onlyOwner {}