|
|
|
@ -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; |
|
|
|
|