mainnet-js 1.0.1 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,13 +6,21 @@ import { binToHex, utf8ToBin } from "@bitauth/libauth";
6
6
  import { delay } from "../util";
7
7
 
8
8
  beforeAll(async () => {
9
- await initProviders([Network.REGTEST]);
9
+ await initProviders();
10
10
  });
11
11
  afterAll(async () => {
12
- await disconnectProviders([Network.REGTEST]);
12
+ await disconnectProviders();
13
13
  });
14
14
 
15
15
  describe(`Test cashtokens`, () => {
16
+ test("Test chipnet request", async () => {
17
+ const wallet = await TestNetWallet.watchOnly(
18
+ "bchtest:pzszr88euuuy87uarx9krcuh5psy4zzghsm2033xk4"
19
+ );
20
+ const utxos = await wallet.getTokenUtxos();
21
+ expect(utxos[0].token?.tokenId).toBeDefined();
22
+ });
23
+
16
24
  test("Test tokens will not be burned when sending bch value", async () => {
17
25
  const alice = await RegTestWallet.fromId(process.env.ALICE_ID!);
18
26
  const bob = await RegTestWallet.newRandom();
@@ -89,6 +89,10 @@ const browserConfig = {
89
89
  // set the current working directory for displaying module paths
90
90
  cwd: process.cwd(),
91
91
  }),
92
+ new webpack.IgnorePlugin({
93
+ resourceRegExp: /wordlists\/(?!english)/,
94
+ contextRegExp: /bip39/,
95
+ }),
92
96
  ],
93
97
  resolve: {
94
98
  alias: {