Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into chain-manager
  • Loading branch information
alexandre-abrioux committed Feb 9, 2024
commit 49346b9d04cc254e664139c46e78d78996b9b6b1
27 changes: 8 additions & 19 deletions packages/smart-contracts/scripts-create2/transfer-ownership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,14 @@ export const transferOwnership = async (
hre: HardhatRuntimeEnvironmentExtended,
signWithEoa: boolean,
): Promise<void> => {
await Promise.all(
create2ContractDeploymentList.map(async (contract) => {
switch (contract) {
case 'Erc20ConversionProxy':
case 'ERC20EscrowToPay':
case 'BatchConversionPayments':
case 'ERC20SwapToPay':
case 'ERC20SwapToConversion': {
await updateOwner({ contract, hre, signWithEoa });
break;
}
case 'EthConversionProxy':
case 'ChainlinkConversionPath': {
await updateWhitelistedRole({ contract, hre, signWithEoa });
break;
}
// Other cases to add when necessary
default:
throw new Error(`The contract ${contract} do not have to be administrated`);
for (const contract of create2ContractDeploymentList) {
switch (contract) {
case 'Erc20ConversionProxy':
case 'BatchConversionPayments':
case 'ERC20SwapToPay':
case 'ERC20SwapToConversion': {
await updateOwner({ contract, hre, signWithEoa });
break;
}
case 'EthConversionProxy':
case 'ChainlinkConversionPath': {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.