suidouble 0.0.30 → 0.0.31
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/lib/SuiMaster.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suidouble",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
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": {
|
|
@@ -55,6 +55,15 @@ test('keypair generation with seed phrase works ok', async t => {
|
|
|
55
55
|
t.equal(`${suiMasterNextAccount.address}`, `0xa6fb5c51b751e07a3e3b3af1f40f3115004702aad5a96263ff0be9078195f43b`, 'Ed25519 next account generated ok');
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
+
test('SuiMaster has MIST_PER_SUI property available as BigInt', async t => {
|
|
59
|
+
const suiMaster = new SuiMaster({provider: 'test', as: 'somebody'});
|
|
60
|
+
|
|
61
|
+
t.ok(suiMaster.MIST_PER_SUI);
|
|
62
|
+
|
|
63
|
+
t.equal(typeof suiMaster.MIST_PER_SUI, 'bigint');
|
|
64
|
+
t.ok(suiMaster.MIST_PER_SUI > BigInt(0));
|
|
65
|
+
});
|
|
66
|
+
|
|
58
67
|
test('connecting to different chains', async t => {
|
|
59
68
|
const suiMaster = new SuiMaster({provider: 'test', as: 'somebody'});
|
|
60
69
|
await suiMaster.initialize();
|