From db5100e360eaab87d2e82176a003550ca14e6319 Mon Sep 17 00:00:00 2001 From: Davide Carpini Date: Mon, 28 Oct 2024 09:10:30 +0100 Subject: [PATCH] fix: custom net fix --- packages/dapp-kit/src/dapp-kit.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/dapp-kit/src/dapp-kit.ts b/packages/dapp-kit/src/dapp-kit.ts index 3656e9a4..76347df4 100644 --- a/packages/dapp-kit/src/dapp-kit.ts +++ b/packages/dapp-kit/src/dapp-kit.ts @@ -1,5 +1,8 @@ import type { Net } from '@vechain/connex-driver'; -import { DriverNoVendor, SimpleNet } from '@vechain/connex-driver'; +import { + DriverNoVendor, + SimpleNet, +} from '@vechain/connex-driver/dist/index.js'; import { Framework } from '@vechain/connex-framework'; import { blake2b256, Hex } from '@vechain/sdk-core'; import { WalletManager } from './classes'; @@ -61,9 +64,7 @@ class DAppKit { const genesisBlock = normalizeGenesisBlock(genesis); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const net = options.customNet || new SimpleNet(nodeUrl); - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument const driver = createThorDriver(nodeUrl, genesisBlock, net); const walletManager = new WalletManager(options, driver);