Skip to content

Commit

Permalink
feat: use message context in IGP derivation too (#4836)
Browse files Browse the repository at this point in the history
### Description

Speeds up IGP derivation in TS relayer

### Backward compatibility

Yes

### Testing

Manual
  • Loading branch information
yorhodes authored Nov 7, 2024
1 parent bbb970a commit ba01222
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/new-olives-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperlane-xyz/sdk": patch
---

feat: use message context in hook reader IGP derivation
4 changes: 3 additions & 1 deletion typescript/sdk/src/hook/EvmHookReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ export class EvmHookReader extends HyperlaneReader implements HookReader {

let oracleKey: string | undefined;

const domainIds = this.multiProvider.getKnownDomainIds();
const domainIds = this.messageContext
? [this.messageContext.parsed.destination]
: this.multiProvider.getKnownDomainIds();

const allKeys = await concurrentMap(
this.concurrency,
Expand Down

0 comments on commit ba01222

Please sign in to comment.