@0xobelisk/sui-client 1.0.2 → 1.0.3

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.mjs CHANGED
@@ -1470,14 +1470,14 @@ var Dubhe = class {
1470
1470
  }
1471
1471
  async state({
1472
1472
  schema,
1473
- struct,
1473
+ field,
1474
1474
  objectId,
1475
1475
  storageType,
1476
1476
  params
1477
1477
  }) {
1478
1478
  const tx = new Transaction2();
1479
1479
  const moduleName = `${schema}_schema`;
1480
- const functionName = `get_${struct}`;
1480
+ const functionName = `get_${field}`;
1481
1481
  const schemaObject = tx.object(objectId);
1482
1482
  const storageValueMatch = storageType.match(/^StorageValue<(.+)>$/);
1483
1483
  const storageMapMatch = storageType.match(/^StorageMap<(.+),\s*(.+)>$/);