From 71551fc82565a8d8a39e2ec055d3ac6f614d93f5 Mon Sep 17 00:00:00 2001 From: Davide Carpini Date: Tue, 6 Feb 2024 00:11:13 +0100 Subject: [PATCH] fix: fix connex --- packages/dapp-kit/src/utils/create-wallet.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/dapp-kit/src/utils/create-wallet.ts b/packages/dapp-kit/src/utils/create-wallet.ts index e9b0c889..3e4c40b5 100644 --- a/packages/dapp-kit/src/utils/create-wallet.ts +++ b/packages/dapp-kit/src/utils/create-wallet.ts @@ -1,4 +1,4 @@ -import { Connex } from '@vechain/connex'; +import * as ConnexLib from '@vechain/connex'; import type { ConnexWallet, DAppKitOptions, @@ -36,12 +36,12 @@ export const createWallet = ({ throw new Error('User is not in a Sync wallet'); } - const vendor = new Connex.Vendor(genesisId, 'sync'); + const vendor = new ConnexLib.Connex.Vendor(genesisId, 'sync'); return new CertificateBasedWallet(convertVendorToSigner(vendor)); } case 'sync2': { - const vendor = new Connex.Vendor(genesisId, 'sync2'); + const vendor = new ConnexLib.Connex.Vendor(genesisId, 'sync2'); return new CertificateBasedWallet(convertVendorToSigner(vendor)); }