Skip to content

Commit

Permalink
fix: re-export Chain from eip1193 types
Browse files Browse the repository at this point in the history
  • Loading branch information
yeager-eren committed Sep 16, 2024
1 parent 42f56ae commit 3ee70e9
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions wallets/core/src/namespaces/evm/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { AddEthereumChainParameter } from './eip1193.js';
import type { AccountsWithActiveChain } from '../../types/accounts.js';
import type {
AutoImplementedActionsByRecommended,
Expand All @@ -14,15 +15,4 @@ export type { EIP1193Provider as ProviderApi } from './eip1193.js';

// A 0x-prefixed hexadecimal string
export type ChainId = string;
export type Chain = {
chainId: ChainId;
chainName: string;
nativeCurrency: {
name: string;
symbol: string; // 2-6 characters long
decimals: number;
};
rpcUrls: string[];
blockExplorerUrls?: string[];
iconUrls?: string[]; // Currently ignored.
};
export type Chain = AddEthereumChainParameter;

0 comments on commit 3ee70e9

Please sign in to comment.