feat: use message context in IGP derivation too (#4836)

### Description

Speeds up IGP derivation in TS relayer

### Backward compatibility

Yes

### Testing

Manual
trevor/disable-rarichain-rpc
Yorke Rhodes 2 weeks ago committed by GitHub
parent bbb970a442
commit ba0122279b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .changeset/new-olives-applaud.md
  2. 4
      typescript/sdk/src/hook/EvmHookReader.ts

@ -0,0 +1,5 @@
---
"@hyperlane-xyz/sdk": patch
---
feat: use message context in hook reader IGP derivation

@ -243,7 +243,9 @@ export class EvmHookReader extends HyperlaneReader implements HookReader {
let oracleKey: string | undefined; let oracleKey: string | undefined;
const domainIds = this.multiProvider.getKnownDomainIds(); const domainIds = this.messageContext
? [this.messageContext.parsed.destination]
: this.multiProvider.getKnownDomainIds();
const allKeys = await concurrentMap( const allKeys = await concurrentMap(
this.concurrency, this.concurrency,

Loading…
Cancel
Save