@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/package.json
CHANGED
package/src/dubhe.ts
CHANGED
|
@@ -721,7 +721,9 @@ export class Dubhe {
|
|
|
721
721
|
/^StorageDoubleMap<(.+),\s*(.+),\s*(.+)>$/
|
|
722
722
|
);
|
|
723
723
|
|
|
724
|
-
let processedParams = [
|
|
724
|
+
let processedParams: (TransactionArgument | SerializedBcs<any>)[] = [
|
|
725
|
+
schemaObject,
|
|
726
|
+
];
|
|
725
727
|
|
|
726
728
|
if (storageValueMatch) {
|
|
727
729
|
// StorageValue only needs the object ID
|
|
@@ -762,21 +764,21 @@ export class Dubhe {
|
|
|
762
764
|
// Handle basic types
|
|
763
765
|
switch (keyType.toLowerCase()) {
|
|
764
766
|
case 'u8':
|
|
765
|
-
return tx.pure(value
|
|
767
|
+
return tx.pure.u8(value);
|
|
766
768
|
case 'u16':
|
|
767
|
-
return tx.pure(value
|
|
769
|
+
return tx.pure.u16(value);
|
|
768
770
|
case 'u32':
|
|
769
|
-
return tx.pure(value
|
|
771
|
+
return tx.pure.u32(value);
|
|
770
772
|
case 'u64':
|
|
771
|
-
return tx.pure(value
|
|
773
|
+
return tx.pure.u64(value);
|
|
772
774
|
case 'u128':
|
|
773
|
-
return tx.pure(value
|
|
775
|
+
return tx.pure.u128(value);
|
|
774
776
|
case 'u256':
|
|
775
|
-
return tx.pure(value
|
|
777
|
+
return tx.pure.u256(value);
|
|
776
778
|
case 'bool':
|
|
777
|
-
return tx.pure(value
|
|
779
|
+
return tx.pure.bool(value);
|
|
778
780
|
case 'address':
|
|
779
|
-
return tx.pure(value
|
|
781
|
+
return tx.pure.address(value);
|
|
780
782
|
default:
|
|
781
783
|
// Check if it's an object type
|
|
782
784
|
if (keyType.includes('::')) {
|