Skip to content

Commit 2c93737

Browse files
ali-behjatim30m
andauthored
chore(eth): deploy stable contracts on testnets (#1146)
* chore(eth): deploy stable contracts on testnets * chore(eth): address feedbacks * Add op sepolia --------- Co-authored-by: Amin Moghaddam <[email protected]>
1 parent 7f54f42 commit 2c93737

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+452
-424
lines changed

contract_manager/scripts/fetch_account_balance.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const parser = yargs(hideBin(process.argv))
1111
desc: "Private key to use to sign transaction",
1212
},
1313
chain: {
14-
type: "string",
14+
type: "array",
15+
string: true,
1516
desc: "Chain to get the balance for. If not provided the balance for all chains is returned.",
1617
},
1718
});
@@ -44,7 +45,7 @@ async function getBalance(
4445
async function main() {
4546
const argv = await parser.argv;
4647
const chains = argv.chain
47-
? [argv.chain]
48+
? argv.chain
4849
: Object.keys(DefaultStore.chains).filter((chain) => chain !== "global");
4950

5051
const privateKey = toPrivateKey(argv["private-key"]);

contract_manager/src/chains.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,19 +314,18 @@ export class EvmChain extends Chain {
314314
constructor(
315315
id: string,
316316
mainnet: boolean,
317-
wormholeChainName: string,
318317
private rpcUrl: string,
319318
private networkId: number
320319
) {
321-
super(id, mainnet, wormholeChainName);
320+
// On EVM networks we use the chain id as the wormhole chain name
321+
super(id, mainnet, id);
322322
}
323323

324324
static fromJson(parsed: ChainConfig & { networkId: number }): EvmChain {
325325
if (parsed.type !== EvmChain.type) throw new Error("Invalid type");
326326
return new EvmChain(
327327
parsed.id,
328328
parsed.mainnet,
329-
parsed.wormholeChainName,
330329
parsed.rpcUrl,
331330
parsed.networkId
332331
);
@@ -367,7 +366,6 @@ export class EvmChain extends Chain {
367366
toJson(): KeyValueConfig {
368367
return {
369368
id: this.id,
370-
wormholeChainName: this.wormholeChainName,
371369
mainnet: this.mainnet,
372370
rpcUrl: this.rpcUrl,
373371
networkId: this.networkId,

0 commit comments

Comments
 (0)