Skip to content

Commit

Permalink
fix: custom net fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecarpini committed Oct 28, 2024
1 parent e7fb1a6 commit db5100e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/dapp-kit/src/dapp-kit.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit db5100e

Please sign in to comment.