@veridex/sdk 1.0.0-beta.4 → 1.0.0-beta.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/dist/index.mjs CHANGED
@@ -3858,11 +3858,12 @@ var AptosClient = class {
3858
3858
  */
3859
3859
  async getVaultAddress(userKeyHash) {
3860
3860
  try {
3861
- const keyHashBytes = this.hexToBytes(userKeyHash.replace("0x", "").padStart(64, "0"));
3861
+ const normalizedKeyHash = "0x" + userKeyHash.replace("0x", "").padStart(64, "0");
3862
3862
  const payload = {
3863
- function: `${this.moduleAddress}::veridex_spoke::get_vault_address`,
3863
+ function: `${this.moduleAddress}::spoke::get_vault_address`,
3864
3864
  type_arguments: [],
3865
- arguments: [Array.from(keyHashBytes)]
3865
+ arguments: [normalizedKeyHash]
3866
+ // Pass as hex string, not byte array
3866
3867
  };
3867
3868
  const response = await this.client.view(payload);
3868
3869
  if (response && response.length > 0) {