Skip to content

Commit

Permalink
fix: fix type error, keep ChainNetwork type
Browse files Browse the repository at this point in the history
  • Loading branch information
way2ex committed Mar 9, 2023
1 parent 1e08615 commit 89735c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/adapters/abstract-adapter/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export enum NetworkType {
Unknown = 'Unknown',
}

export enum ChainNetwork {
Mainnet = 'Mainnet',
Shasta = 'Shasta',
Nile = 'Nile',
}

export type Network = {
networkType: NetworkType;
chainId: string;
Expand All @@ -17,7 +23,6 @@ export type Network = {
};

export type { Network as NetworkNodeConfig };
export { NetworkType as ChainNetwork };
// types should be defined in @tronweb3/web3.js, such as tronweb
// as no ts in tronweb
// just defined here
Expand Down

0 comments on commit 89735c1

Please sign in to comment.