We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af14a8 commit 805d4eeCopy full SHA for 805d4ee
src/clients/Web3ClientFactory.ts
@@ -7,11 +7,12 @@ import { Config } from '@dequanto/config/Config';
7
import { EvmWeb3Client } from './EvmWeb3Client';
8
import { $require } from '@dequanto/utils/$require';
9
import { $config } from '@dequanto/utils/$config';
10
+import { IConfigData } from '@dequanto/config/interface/IConfigData';
11
12
export namespace Web3ClientFactory {
13
14
export function get (platform: TPlatform | string | number, opts?: IWeb3EndpointOptions) {
- let web3 = $config.get('web3');
15
+ let web3 = $config.get<IConfigData['web3']>('web3');
16
if (typeof platform ==='number') {
17
let chain = alot.fromObject(web3).find(x => x.value.chainId === platform);
18
if (chain == null) {
0 commit comments