Skip to content

Commit 4b815db

Browse files
authored
fix issues causing vitest to puke (#517)
1 parent c9e685f commit 4b815db

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

platforms/cosmwasm/protocols/ibc/src/ibc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { CosmWasmClient } from "@cosmjs/cosmwasm-stargate";
22
import type { IndexedTx, MsgTransferEncodeObject } from "@cosmjs/stargate";
33
import { coin } from "@cosmjs/stargate";
4-
import { MsgTransfer } from "cosmjs-types/ibc/applications/transfer/v1/tx";
4+
import { MsgTransfer } from "cosmjs-types/ibc/applications/transfer/v1/tx.js";
55

66
import type {
77
ChainAddress,

platforms/cosmwasm/src/signer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import type { CosmwasmUnsignedTransaction } from "./unsignedTransaction.js";
3030
// TODO: replace this? no hints in the package to resolve it, probably
3131
// need to find a new package to pull it from
3232
// @ts-ignore
33-
import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx";
33+
import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx.js";
3434

3535
export async function getCosmwasmSigner(rpc: CosmWasmClient, mnemonic: string): Promise<Signer> {
3636
const [network, chain] = await CosmwasmPlatform.chainFromRpc(rpc);

platforms/cosmwasm/src/unsignedTransaction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { StdFee } from "@cosmjs/stargate";
33
import { calculateFee } from "@cosmjs/stargate";
44
import type { Network, UnsignedTransaction } from "@wormhole-foundation/sdk-connect";
55
import { encoding } from "@wormhole-foundation/sdk-connect";
6-
import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx";
6+
import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx.js";
77
import { DEFAULT_FEE, MSG_EXECUTE_CONTRACT_TYPE_URL, averageGasPrices } from "./constants.js";
88
import { CosmwasmPlatform } from "./platform.js";
99
import type { CosmwasmChains } from "./types.js";

platforms/solana/protocols/core/src/utils/program.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import { utils } from '@wormhole-foundation/sdk-solana';
66
import { WormholeCoder } from './coder/index.js';
77
import type { Wormhole } from '../types.js';
88

9-
import IDL from '../anchor-idl/wormhole.json';
9+
// ts-ignoring because of this nonsense https://github.com/microsoft/TypeScript/issues/51783
10+
/* @ts-ignore */
11+
import IDL from '../anchor-idl/wormhole.json' assert { type: 'json' };
1012

1113
export function createWormholeProgramInterface(
1214
programId: PublicKeyInitData,

platforms/solana/protocols/tokenBridge/src/utils/tokenBridge/program.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import { utils } from '@wormhole-foundation/sdk-solana';
66
import { TokenBridgeCoder } from './coder/index.js';
77
import type { TokenBridge } from '../../tokenBridgeType.js';
88

9-
import IDL from '../../anchor-idl/token_bridge.json';
9+
// ts-ignoring because of this nonsense https://github.com/microsoft/TypeScript/issues/51783
10+
/* @ts-ignore */
11+
import IDL from '../../anchor-idl/token_bridge.json' assert { type: 'json' };;
1012

1113
export function createTokenBridgeProgramInterface(
1214
programId: PublicKeyInitData,

0 commit comments

Comments
 (0)