Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Dec 6, 2024
1 parent b20cef4 commit 57c302d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lazer/contracts/evm/script/PythLazerDeploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ contract PythLazerDeployScript is Script {

function migrate() public {
// Deploys new version and updates proxy to use new address
address proxyAddress = getProxyAddress("lazer:proxy");
address proxyAddress = getProxyAddress("lazer:proxy");
address newImpl = deployImplementation("lazer:impl");
bytes memory migrateCall = abi.encodeWithSignature("migrate()");
vm.startBroadcast();
Expand Down
5 changes: 4 additions & 1 deletion lazer/contracts/evm/src/PythLazer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ contract PythLazer is OwnableUpgradeable, UUPSUpgradeable {
}

function migrate() public onlyOwner {
require(trustedSigners.length >= deprecatedTrustedSigners.length, "trustedSigners cannot be migrated to smaller array");
require(
trustedSigners.length >= deprecatedTrustedSigners.length,
"trustedSigners cannot be migrated to smaller array"
);

verification_fee = 1 wei;
for (uint8 i = 0; i < deprecatedTrustedSigners.length; i++) {
Expand Down

0 comments on commit 57c302d

Please sign in to comment.