suidouble 0.0.31 → 0.0.32

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.
package/index.js CHANGED
@@ -8,4 +8,5 @@ module.exports = {
8
8
  SuiInBrowser,
9
9
  SuiTestScenario,
10
10
  SuiLocalTestValidator,
11
+ MIST_PER_SUI: SuiMaster.MIST_PER_SUI,
11
12
  };
package/lib/SuiMaster.js CHANGED
@@ -236,6 +236,6 @@ class SuiMaster extends SuiCommonMethods {
236
236
  }
237
237
  };
238
238
 
239
-
239
+ SuiMaster.MIST_PER_SUI = BigInt(sui.MIST_PER_SUI);
240
240
 
241
241
  module.exports = SuiMaster;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suidouble",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "Set of provider, package and object classes for javascript representation of Sui Move smart contracts. Use same code for publishing, upgrading, integration testing, interaction with smart contracts and integration in browser web3 dapps",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3,7 +3,7 @@
3
3
  const t = require('tap');
4
4
  const { test } = t;
5
5
 
6
- const { SuiMaster } = require('..');
6
+ const { SuiMaster, MIST_PER_SUI } = require('..');
7
7
 
8
8
  test('initialization', async t => {
9
9
  t.plan(2);
@@ -62,6 +62,10 @@ test('SuiMaster has MIST_PER_SUI property available as BigInt', async t => {
62
62
 
63
63
  t.equal(typeof suiMaster.MIST_PER_SUI, 'bigint');
64
64
  t.ok(suiMaster.MIST_PER_SUI > BigInt(0));
65
+
66
+
67
+ t.equal(suiMaster.MIST_PER_SUI, SuiMaster.MIST_PER_SUI);
68
+ t.equal(suiMaster.MIST_PER_SUI, MIST_PER_SUI); // available as global library export too
65
69
  });
66
70
 
67
71
  test('connecting to different chains', async t => {