Skip to content

Commit

Permalink
chore: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Dec 19, 2023
1 parent 0974407 commit 2b37bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/BaseMigration.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ abstract contract BaseMigration is ScriptExtended {
}
}

function loadContract(TContract contractType) public virtual returns (address payable contractAddr) {
function loadContract(TContract contractType) public view virtual returns (address payable contractAddr) {
return CONFIG.getAddressFromCurrentNetwork(contractType);
}

Expand All @@ -67,7 +67,7 @@ abstract contract BaseMigration is ScriptExtended {
}

function _getProxyAdmin() internal view virtual returns (address payable proxyAdmin) {
proxyAdmin = CONFIG.getAddressFromCurrentNetwork(DefaultContract.ProxyAdmin.key());
proxyAdmin = loadContract(DefaultContract.ProxyAdmin.key());
}

function _deployImmutable(TContract contractType) internal virtual returns (address payable deployed) {
Expand Down

0 comments on commit 2b37bf4

Please sign in to comment.