Skip to content

Commit

Permalink
fix: use siblings
Browse files Browse the repository at this point in the history
  • Loading branch information
ameeshaagrawal committed Jun 25, 2024
1 parent b1c9933 commit adb8edc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/deploy/em-migration/migrate-em.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
import { Wallet } from "ethers";
import { getProviderFromChainSlug } from "../../constants";
import { storeAllAddresses } from "../utils";
import { getSiblingsFromAddresses } from "../../common";

const emVersion = CORE_CONTRACTS.ExecutionManagerDF;

Expand All @@ -46,11 +47,7 @@ export const configureExecutionManagers = async (

let addr: ChainSocketAddresses = addresses[chain]!;

// todo: take siblings from address json
const siblingSlugs: ChainSlug[] = [];
// list.filter(
// (chainSlug) => chainSlug !== chain && chains.includes(chainSlug)
// );
const siblingSlugs: ChainSlug[] = getSiblingsFromAddresses(addr);

await configureExecutionManager(
emVersion,
Expand All @@ -64,7 +61,10 @@ export const configureExecutionManagers = async (
await setManagers(addr, socketSigner, emVersion);
})
);
} catch (error) {}
} catch (error) {
console.log(error);
throw error;
}
};

const deleteOldContracts = async (chains: ChainSlug[]) => {
Expand Down

0 comments on commit adb8edc

Please sign in to comment.