thor-builtin 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/dist/wallet.js +2 -1
  2. package/package.json +1 -1
package/dist/wallet.js CHANGED
@@ -8,8 +8,9 @@ let privKeys = [];
8
8
  let accounts = [];
9
9
  for (let i = 0; i < 10; i++) {
10
10
  const priv = hdNode.derive(i).privateKey;
11
+ const pub = thor_devkit_1.secp256k1.derivePublicKey(priv);
11
12
  privKeys.push('0x' + (priv === null || priv === void 0 ? void 0 : priv.toString('hex')));
12
- accounts.push(thor_devkit_1.address.fromPublicKey(priv));
13
+ accounts.push(thor_devkit_1.address.fromPublicKey(pub));
13
14
  }
14
15
  const SoloDefault = {
15
16
  mnemonic: word,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thor-builtin",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Addresses and ABIs of the built-in contracts deployed on the VeChain Thor blockchain.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {