Skip to content

Commit 8bc04e3

Browse files
authored
standardize/fix generic arguments to chain context class (#609)
1 parent 9b66a85 commit 8bc04e3

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

platforms/aptos/src/chain.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ import type { Network } from "@wormhole-foundation/sdk-connect";
22
import { ChainContext } from "@wormhole-foundation/sdk-connect";
33
import type { AptosChains } from "./types.js";
44

5-
export class AptosChain<N extends Network, C extends AptosChains> extends ChainContext<N, C> {}
5+
export class AptosChain<
6+
N extends Network = Network,
7+
C extends AptosChains = AptosChains,
8+
> extends ChainContext<N, C> {}

platforms/cosmwasm/src/chain.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { Chain, Network } from "@wormhole-foundation/sdk-connect";
1+
import type { Network } from "@wormhole-foundation/sdk-connect";
22
import { ChainContext } from "@wormhole-foundation/sdk-connect";
33
import type { CosmwasmChains } from "./types.js";
44

55
export class CosmwasmChain<
66
N extends Network = Network,
7-
C extends Chain = CosmwasmChains,
7+
C extends CosmwasmChains = CosmwasmChains,
88
> extends ChainContext<N, C> {}

platforms/evm/src/chain.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Chain, Network } from '@wormhole-foundation/sdk-connect';
1+
import type { Network } from '@wormhole-foundation/sdk-connect';
22
import { ChainContext } from '@wormhole-foundation/sdk-connect';
33
import type { EvmChains } from './types.js';
44

@@ -7,5 +7,5 @@ import type { EvmChains } from './types.js';
77
*/
88
export class EvmChain<
99
N extends Network = Network,
10-
C extends Chain = EvmChains,
10+
C extends EvmChains = EvmChains,
1111
> extends ChainContext<N, C> {}

platforms/solana/src/chain.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { SolanaAddress } from './address.js';
99
import type { SolanaChains } from './types.js';
1010

1111
export class SolanaChain<
12-
N extends Network,
12+
N extends Network = Network,
1313
C extends SolanaChains = SolanaChains,
1414
> extends ChainContext<N, C> {
1515
override async getTokenAccount(

platforms/sui/src/chain.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { Chain, Network } from "@wormhole-foundation/sdk-connect";
1+
import type { Network } from "@wormhole-foundation/sdk-connect";
22
import { ChainContext } from "@wormhole-foundation/sdk-connect";
33
import type { SuiChains } from "./types.js";
44

55
export class SuiChain<
66
N extends Network = Network,
7-
C extends Chain = SuiChains,
7+
C extends SuiChains = SuiChains,
88
> extends ChainContext<N, C> {}

0 commit comments

Comments
 (0)