Skip to content

Commit

Permalink
script: move override tier to post check
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Mar 13, 2024
1 parent 2a13fb9 commit cfc362d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ contract Migration__01_UpgradeRNSDomainPriceAndOverrideTierForCommunityNames_RNS

function run() external {
_domainPrice = RNSDomainPrice(_upgradeProxy(Contract.RNSDomainPrice.key()));
}

function _postCheck() internal override logFn("_postChecking ...") {
_multicall = IMulticall3(loadContract(DefaultContract.Multicall3.key()));

(_labels, _tiers) = _parseData(DATA_PATH);
Expand Down Expand Up @@ -50,9 +53,7 @@ contract Migration__01_UpgradeRNSDomainPriceAndOverrideTierForCommunityNames_RNS
vm.prank(overrider);
_domainPrice.bulkOverrideTiers(batchHashes, batchTiers);
}
}

function _postCheck() internal override logFn("_postChecking ...") {
_validateOverridenTiers();
_validateOtherDomainTiers();
}
Expand Down

0 comments on commit cfc362d

Please sign in to comment.