We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d685b99 commit 95c2891Copy full SHA for 95c2891
2 files changed
.changeset/skip-unknown-fee-domains.md
@@ -0,0 +1,5 @@
1
+---
2
+"@hyperlane-xyz/sdk": patch
3
4
+
5
+Routing fee config derivation skips non-EVM domains unknown to MultiProvider instead of throwing.
typescript/sdk/src/fee/EvmTokenFeeReader.ts
@@ -135,7 +135,8 @@ export class EvmTokenFeeReader extends HyperlaneReader {
135
routingDestinations.map(async (destination) => {
136
const subFeeAddress = await routingFee.feeContracts(destination);
137
if (subFeeAddress === constants.AddressZero) return;
138
- const chainName = this.multiProvider.getChainName(destination);
+ const chainName = this.multiProvider.tryGetChainName(destination);
139
+ if (!chainName) return;
140
feeContracts[chainName] = await this.deriveTokenFeeConfig({
141
address: subFeeAddress,
142
0 commit comments