Skip to content

Commit aa43a81

Browse files
committed
Fix writeCache type error for minimalInterchainAccountRouter key
1 parent 5988fe6 commit aa43a81

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

typescript/sdk/src/middleware/account/InterchainAccountDeployer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,12 @@ export class InterchainAccountDeployer extends HyperlaneRouterDeployer<
9494
// so persist the address for crash-recovery.
9595
// Key must match the contractName passed to deployContractFromFactory above
9696
// so that readCache finds it on recovery.
97+
// CAST: writeCache is typed to keyof Factories, but deployContractFromFactory
98+
// operates outside the factory type system with a free-form contractName string.
99+
// readCache already accepts arbitrary string keys — this just matches it.
97100
this.writeCache(
98101
chain,
99-
'minimalInterchainAccountRouter',
102+
'minimalInterchainAccountRouter' as keyof InterchainAccountFactories,
100103
interchainAccountRouter.address,
101104
);
102105
}

0 commit comments

Comments
 (0)