From 4fb01b81c8e0c58b612b41c221995afbdbd13373 Mon Sep 17 00:00:00 2001 From: nvsriram Date: Mon, 28 Oct 2024 20:02:14 -0400 Subject: [PATCH] evm: Update `verifyAddresses` to return remote wormhole transceiver irrespective of local case --- cli/src/index.ts | 2 +- evm/ts/src/ntt.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cli/src/index.ts b/cli/src/index.ts index a0de0e80..039a097d 100755 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -1798,7 +1798,7 @@ async function nttFromManager( ntt: { manager: nativeManagerAddress, token: null, - transceiver: { "wormhole": nativeManagerAddress }, + transceiver: {}, } }); const diff = await onlyManager.verifyAddresses(); diff --git a/evm/ts/src/ntt.ts b/evm/ts/src/ntt.ts index d8118893..92945400 100644 --- a/evm/ts/src/ntt.ts +++ b/evm/ts/src/ntt.ts @@ -598,9 +598,7 @@ export class EvmNtt manager: this.managerAddress, token: await this.manager.token(), transceiver: { - ...(this.xcvrs.length > 0 && { - wormhole: (await this.manager.getTransceivers())[0]!, - }), // TODO: make this more generic + wormhole: (await this.manager.getTransceivers())[0]!, // TODO: make this more generic }, };