Skip to content

Commit

Permalink
Update Utils.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanco committed Jul 9, 2024
1 parent 6a85e8d commit ff5c3ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions script/contracts/Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ contract Utils is Script {
l2AddressesConfig.L2VestingWalletImplementation = l2VestingWalletImplementation;
} catch { }

try vm.parseJsonAddress(addressJson, ".L2VestingWalletPaused") returns (
address l2VestingWalletPaused
) {
l2AddressesConfig.L2VestingWalletPaused = l2VestingWalletPaused;
} catch { }

try vm.parseJsonAddress(addressJson, ".L2VotingPower") returns (address l2VotingPower) {
l2AddressesConfig.L2VotingPower = l2VotingPower;
} catch { }
Expand Down Expand Up @@ -293,6 +299,7 @@ contract Utils is Script {
vm.serializeAddress(json, "L2StakingImplementation", cfg.L2StakingImplementation);
vm.serializeAddress(json, "L2TimelockController", cfg.L2TimelockController);
vm.serializeAddress(json, "L2VestingWalletImplementation", cfg.L2VestingWalletImplementation);
vm.serializeAddress(json, "L2VestingWalletPaused", cfg.L2VestingWalletPaused);
vm.serializeAddress(json, "L2VotingPower", cfg.L2VotingPower);
vm.serializeAddress(json, "L2VotingPowerImplementation", cfg.L2VotingPowerImplementation);
string memory finalJson = vm.serializeAddress(json, "L2VotingPowerPaused", cfg.L2VotingPowerPaused);
Expand Down

0 comments on commit ff5c3ae

Please sign in to comment.