Skip to content

Commit

Permalink
script: prevent reverting at the start of the script
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Jun 25, 2024
1 parent f199352 commit f33480d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/20231024-upgrade-domain-price/20231024_Config.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ abstract contract Config__20231024 is Migration {

ISharedArgument.SharedParameter memory param = abi.decode(rawArgs, (ISharedArgument.SharedParameter));

if (network() == DefaultNetwork.RoninTestnet.key()) {
if (network() == DefaultNetwork.RoninTestnet.key() || network() == DefaultNetwork.LocalHost.key()) {
param.rnsDomainPrice.overrider = param.rnsDomainPrice.domainPriceOperators[0];
} else if (network() == DefaultNetwork.RoninMainnet.key()) {
revert("Missing param");
Expand Down
2 changes: 1 addition & 1 deletion script/Migration.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abstract contract Migration is BaseMigration {
function _sharedArguments() internal view virtual override returns (bytes memory rawArgs) {
ISharedArgument.SharedParameter memory param;

if (network() == DefaultNetwork.RoninTestnet.key()) {
if (network() == DefaultNetwork.RoninTestnet.key() || network() == DefaultNetwork.LocalHost.key()) {
address defaultAdmin = 0x968D0Cd7343f711216817E617d3f92a23dC91c07;
address defaultPauser = defaultAdmin;
address defaultOperator = defaultAdmin;
Expand Down

0 comments on commit f33480d

Please sign in to comment.