Skip to content

Commit

Permalink
evm: Update verifyAddresses to return remote wormhole transceiver i…
Browse files Browse the repository at this point in the history
…rrespective of local case
  • Loading branch information
nvsriram committed Oct 29, 2024
1 parent aff5be7 commit 4fb01b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,7 @@ async function nttFromManager<N extends Network, C extends Chain>(
ntt: {
manager: nativeManagerAddress,
token: null,
transceiver: { "wormhole": nativeManagerAddress },
transceiver: {},
}
});
const diff = await onlyManager.verifyAddresses();
Expand Down
4 changes: 1 addition & 3 deletions evm/ts/src/ntt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,7 @@ export class EvmNtt<N extends Network, C extends EvmChains>
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
},
};

Expand Down

0 comments on commit 4fb01b8

Please sign in to comment.