@voltr/vault-sdk 1.0.16 → 1.0.17

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.
Files changed (2) hide show
  1. package/dist/client.js +1 -1
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -320,12 +320,12 @@ class VoltrClient extends AccountUtils {
320
320
  */
321
321
  async createInitializeVaultIx(vaultParams, { vault, vaultAssetMint, admin, manager, payer, }) {
322
322
  const addresses = this.findVaultAddresses(vault);
323
- const vaultAssetIdleAta = (0, spl_token_1.getAssociatedTokenAddressSync)(vaultAssetMint, addresses.vaultAssetIdleAuth, true);
324
323
  const vaultAssetMintAccount = await this.provider.connection.getAccountInfo(vaultAssetMint);
325
324
  const assetTokenProgram = vaultAssetMintAccount?.owner;
326
325
  if (!assetTokenProgram) {
327
326
  throw new Error("Vault asset mint not found");
328
327
  }
328
+ const vaultAssetIdleAta = (0, spl_token_1.getAssociatedTokenAddressSync)(vaultAssetMint, addresses.vaultAssetIdleAuth, true, assetTokenProgram);
329
329
  return await this.vaultProgram.methods
330
330
  .initializeVault(vaultParams.config, vaultParams.name, vaultParams.description)
331
331
  .accounts({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltr/vault-sdk",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "SDK for interacting with Voltr Protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",