suidouble 1.0.4-2 → 1.0.4-5
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/README.md +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -228,7 +228,7 @@ arguments.push(contract.arg('u128', 5555));
|
|
|
228
228
|
arguments.push(contract.arg('u256', 6666));
|
|
229
229
|
arguments.push(contract.arg('address', '0xd9a95d7cc137f71dd7766f02791536453062a7509e9f461620cc4f583b09134c'));
|
|
230
230
|
arguments.push(contract.arg('string', 'some utf-8 💧string'));
|
|
231
|
-
arguments.push(contract.arg('vector<u8>', 222)); // works for other vectors with primitive contents, e.g. u128, bool etc
|
|
231
|
+
arguments.push(contract.arg('vector<u8>', [222,111,211])); // works for other vectors with primitive contents, e.g. u128, bool etc
|
|
232
232
|
```
|
|
233
233
|
|
|
234
234
|
Take a look at unit test covering all types arguments [here](test/different_types_args.test.js)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suidouble",
|
|
3
|
-
"version": "1.0.4-
|
|
3
|
+
"version": "1.0.4-5",
|
|
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": {
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"tap": "^16.3.4"
|
|
30
30
|
},
|
|
31
|
+
"browser": {
|
|
32
|
+
"child_process": false,
|
|
33
|
+
"fs": false,
|
|
34
|
+
"path": false
|
|
35
|
+
},
|
|
31
36
|
"tap": {
|
|
32
37
|
"branches": 90,
|
|
33
38
|
"lines": 90,
|