Skip to content

Commit 805d4ee

Browse files
committed
fix (typings)
1 parent 0af14a8 commit 805d4ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/clients/Web3ClientFactory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import { Config } from '@dequanto/config/Config';
77
import { EvmWeb3Client } from './EvmWeb3Client';
88
import { $require } from '@dequanto/utils/$require';
99
import { $config } from '@dequanto/utils/$config';
10+
import { IConfigData } from '@dequanto/config/interface/IConfigData';
1011

1112
export namespace Web3ClientFactory {
1213

1314
export function get (platform: TPlatform | string | number, opts?: IWeb3EndpointOptions) {
14-
let web3 = $config.get('web3');
15+
let web3 = $config.get<IConfigData['web3']>('web3');
1516
if (typeof platform ==='number') {
1617
let chain = alot.fromObject(web3).find(x => x.value.chainId === platform);
1718
if (chain == null) {

0 commit comments

Comments
 (0)