@0xobelisk/sui-client 1.0.1 → 1.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.
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dubhe.ts +11 -9
package/dist/index.mjs
CHANGED
|
@@ -1484,7 +1484,9 @@ var Dubhe = class {
|
|
|
1484
1484
|
const storageDoubleMapMatch = storageType.match(
|
|
1485
1485
|
/^StorageDoubleMap<(.+),\s*(.+),\s*(.+)>$/
|
|
1486
1486
|
);
|
|
1487
|
-
let processedParams = [
|
|
1487
|
+
let processedParams = [
|
|
1488
|
+
schemaObject
|
|
1489
|
+
];
|
|
1488
1490
|
if (storageValueMatch) {
|
|
1489
1491
|
if (params.length > 0) {
|
|
1490
1492
|
console.warn(
|
|
@@ -1787,21 +1789,21 @@ _processKeyParameter = new WeakSet();
|
|
|
1787
1789
|
processKeyParameter_fn = function(tx, keyType, value) {
|
|
1788
1790
|
switch (keyType.toLowerCase()) {
|
|
1789
1791
|
case "u8":
|
|
1790
|
-
return tx.pure(value
|
|
1792
|
+
return tx.pure.u8(value);
|
|
1791
1793
|
case "u16":
|
|
1792
|
-
return tx.pure(value
|
|
1794
|
+
return tx.pure.u16(value);
|
|
1793
1795
|
case "u32":
|
|
1794
|
-
return tx.pure(value
|
|
1796
|
+
return tx.pure.u32(value);
|
|
1795
1797
|
case "u64":
|
|
1796
|
-
return tx.pure(value
|
|
1798
|
+
return tx.pure.u64(value);
|
|
1797
1799
|
case "u128":
|
|
1798
|
-
return tx.pure(value
|
|
1800
|
+
return tx.pure.u128(value);
|
|
1799
1801
|
case "u256":
|
|
1800
|
-
return tx.pure(value
|
|
1802
|
+
return tx.pure.u256(value);
|
|
1801
1803
|
case "bool":
|
|
1802
|
-
return tx.pure(value
|
|
1804
|
+
return tx.pure.bool(value);
|
|
1803
1805
|
case "address":
|
|
1804
|
-
return tx.pure(value
|
|
1806
|
+
return tx.pure.address(value);
|
|
1805
1807
|
default:
|
|
1806
1808
|
if (keyType.includes("::")) {
|
|
1807
1809
|
return tx.object(value);
|