浏览代码

fix(cosmwasm): typing issues

benduran 3 周之前
父节点
当前提交
16495c4071

+ 1 - 0
target_chains/cosmwasm/tools/src/ci/deployer/index.ts

@@ -30,6 +30,7 @@ export class DeployerFactory {
         return TerraDeployer.fromHostAndMnemonic(config.host, mnemonic);
 
       case CONFIG_TYPE.INJECTIVE:
+        // @ts-expect-error - TODO: slight typing differences
         return InjectiveDeployer.fromHostAndMnemonic(config.host, mnemonic);
 
       case CONFIG_TYPE.OSMOSIS:

+ 2 - 1
target_chains/cosmwasm/tools/src/ci/deployer/injective.ts

@@ -189,6 +189,7 @@ export class InjectiveDeployer implements Deployer {
     await this.signAndBroadcastMsg(updateAdminMsg);
   }
 
+  // @ts-expect-error - TODO: slight typing differences in return types
   async getContractInfo(contract: string): Promise<ContractInfo> {
     const { grpc } = getNetworkInfo(this.network);
     const api = new ChainGrpcWasmApi(grpc);
@@ -205,7 +206,7 @@ export class InjectiveDeployer implements Deployer {
       creator: creator,
       admin: admin,
       initMsg: undefined,
-    } as ContractInfo;
+    } as unknown as ContractInfo;
   }
 
   static fromHostAndMnemonic(host: InjectiveHost, mnemonic: string) {