Further core deploy fixes (#1045)

pull/1046/head
Nam Chu Hoai 2 years ago committed by GitHub
parent ef763dce18
commit d4c6d6c7b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      typescript/sdk/src/deploy/AbacusDeployer.ts
  2. 7
      typescript/sdk/src/deploy/core/AbacusCoreDeployer.ts

@ -245,7 +245,7 @@ export abstract class AbacusDeployer<
this.logger(`Duplicate Proxy on ${chain}`);
return this.deployProxy(
chain,
proxy.contract,
proxy.contract.attach(proxy.addresses.implementation) as C,
proxy.addresses.beacon,
initArgs,
);

@ -149,10 +149,12 @@ export class AbacusCoreDeployer<Chain extends ChainName> extends AbacusDeployer<
await super.runIfOwner(chain, abacusConnectionManager, async () => {
const current = await abacusConnectionManager.outbox();
if (current !== outbox.outbox.address) {
await abacusConnectionManager.setOutbox(
const outboxTx = await abacusConnectionManager.setOutbox(
outbox.outbox.address,
dc.overrides,
);
await dc.handleTx(outboxTx);
}
});
@ -181,11 +183,12 @@ export class AbacusCoreDeployer<Chain extends ChainName> extends AbacusDeployer<
inboxes[remote]!.inbox.address,
);
if (!isEnrolled) {
await abacusConnectionManager.enrollInbox(
const enrollTx = await abacusConnectionManager.enrollInbox(
chainMetadata[remote].id,
inboxes[remote]!.inbox.address,
dc.overrides,
);
await dc.handleTx(enrollTx);
}
});
prev = remote;

Loading…
Cancel
Save