Skip to content

Commit dc91af0

Browse files
committed
Fix venly
1 parent 5c6d017 commit dc91af0

File tree

4 files changed

+154
-80
lines changed

4 files changed

+154
-80
lines changed

packages/venly/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"typescript": "^5.4.5"
4646
},
4747
"dependencies": {
48-
"@venly/web3-provider": "^3.1.1",
48+
"@venly/web3-provider": "^3.5.3",
4949
"@web3-onboard/common": "^2.4.0-viem.4"
5050
}
5151
}

packages/venly/src/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ function venly(options: VenlyOptions): WalletInit {
1313
label: 'Venly',
1414
getIcon: async () => (await import('./icon.js')).default,
1515
getInterface: async ({ chains }) => {
16-
const { VenlyProvider, SECRET_TYPES } = await import('@venly/web3-provider')
16+
const { VenlyProvider, SecretType } = await import(
17+
'@venly/web3-provider'
18+
)
1719

1820
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')
2223

2324
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+
2727
const instance = new VenlyProvider()
2828
const provider = await instance.createProvider(providerOptions)
2929

packages/venly/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"include": ["src/**/*"],
4-
3+
"include": ["src/**/*", "src/types/**/*"],
4+
55
"compilerOptions": {
66
"outDir": "dist",
77
"rootDir": "src",

0 commit comments

Comments
 (0)