We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5988fe6 commit aa43a81Copy full SHA for aa43a81
1 file changed
typescript/sdk/src/middleware/account/InterchainAccountDeployer.ts
@@ -94,9 +94,12 @@ export class InterchainAccountDeployer extends HyperlaneRouterDeployer<
94
// so persist the address for crash-recovery.
95
// Key must match the contractName passed to deployContractFromFactory above
96
// 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.
100
this.writeCache(
101
chain,
- 'minimalInterchainAccountRouter',
102
+ 'minimalInterchainAccountRouter' as keyof InterchainAccountFactories,
103
interchainAccountRouter.address,
104
);
105
}
0 commit comments