@veridex/sdk 1.0.0-beta.6 → 1.0.0-beta.8

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
@@ -222,7 +222,7 @@ var TESTNET_CHAINS = {
222
222
  explorerUrl: "https://explorer.aptoslabs.com",
223
223
  isEvm: false,
224
224
  contracts: {
225
- hub: "0x1a89da9e9f8f0bc90d8d492890bd55fb261c6277d2a95dfcac70c268d0c23dcc",
225
+ hub: "0x0237e04f74b991b5b6030a793779663033f4ff4a1682a9e66c1f41fc1ec3e2a4",
226
226
  wormholeCoreBridge: "0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625",
227
227
  tokenBridge: "0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"
228
228
  }
@@ -3858,12 +3858,12 @@ var AptosClient = class {
3858
3858
  */
3859
3859
  async getVaultAddress(userKeyHash) {
3860
3860
  try {
3861
- const normalizedKeyHash = "0x" + userKeyHash.replace("0x", "").padStart(64, "0");
3861
+ const keyHashBytes = this.hexToBytes(userKeyHash.replace("0x", "").padStart(64, "0"));
3862
3862
  const payload = {
3863
3863
  function: `${this.moduleAddress}::spoke::get_vault_address`,
3864
3864
  type_arguments: [],
3865
- arguments: [normalizedKeyHash]
3866
- // Pass as hex string, not byte array
3865
+ arguments: [Array.from(keyHashBytes)]
3866
+ // Pass as array of numbers for vector<u8>
3867
3867
  };
3868
3868
  const response = await this.client.view(payload);
3869
3869
  if (response && response.length > 0) {
@@ -11432,7 +11432,7 @@ var CHAIN_PRESETS = {
11432
11432
  explorerUrl: "https://explorer.aptoslabs.com",
11433
11433
  isEvm: false,
11434
11434
  contracts: {
11435
- hub: "0x1a89da9e9f8f0bc90d8d492890bd55fb261c6277d2a95dfcac70c268d0c23dcc",
11435
+ hub: "0x0237e04f74b991b5b6030a793779663033f4ff4a1682a9e66c1f41fc1ec3e2a4",
11436
11436
  wormholeCoreBridge: "0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625",
11437
11437
  tokenBridge: "0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"
11438
11438
  }