File tree 4 files changed +154
-80
lines changed
4 files changed +154
-80
lines changed Original file line number Diff line number Diff line change 45
45
"typescript" : " ^5.4.5"
46
46
},
47
47
"dependencies" : {
48
- "@venly/web3-provider" : " ^3.1.1 " ,
48
+ "@venly/web3-provider" : " ^3.5.3 " ,
49
49
"@web3-onboard/common" : " ^2.4.0-viem.4"
50
50
}
51
51
}
Original file line number Diff line number Diff line change @@ -13,17 +13,17 @@ function venly(options: VenlyOptions): WalletInit {
13
13
label : 'Venly' ,
14
14
getIcon : async ( ) => ( await import ( './icon.js' ) ) . default ,
15
15
getInterface : async ( { chains } ) => {
16
- const { VenlyProvider, SECRET_TYPES } = await import ( '@venly/web3-provider' )
16
+ const { VenlyProvider, SecretType } = await import (
17
+ '@venly/web3-provider'
18
+ )
17
19
18
20
const chainId = + chains [ 0 ] . id
19
- const chain = SECRET_TYPES [ chainId ]
20
- if ( ! chain )
21
- throw new Error ( 'Chain not supported' )
21
+ const chain = SecretType [ chainId ]
22
+ if ( ! chain ) throw new Error ( 'Chain not supported' )
22
23
23
24
const providerOptions = { ...options , secretType : chain . secretType }
24
- if ( ! options . environment )
25
- providerOptions . environment = chain . env
26
-
25
+ if ( ! options . environment ) providerOptions . environment = chain . env
26
+
27
27
const instance = new VenlyProvider ( )
28
28
const provider = await instance . createProvider ( providerOptions )
29
29
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../../tsconfig.json" ,
3
- "include" : [" src/**/*" ],
4
-
3
+ "include" : [" src/**/*" , " src/types/**/* " ],
4
+
5
5
"compilerOptions" : {
6
6
"outDir" : " dist" ,
7
7
"rootDir" : " src" ,
You can’t perform that action at this time.
0 commit comments