@voltr/vault-sdk 0.1.3 → 0.1.4
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/client.js +3 -3
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -775,7 +775,7 @@ class VoltrClient extends AccountUtils {
|
|
|
775
775
|
* @returns Promise resolving to the vault account data
|
|
776
776
|
*/
|
|
777
777
|
async fetchVaultAccount(vault) {
|
|
778
|
-
return await this.vaultProgram.account.vault.fetch(vault);
|
|
778
|
+
return await this.vaultProgram.account.vault.fetch(vault, "confirmed");
|
|
779
779
|
}
|
|
780
780
|
/**
|
|
781
781
|
* Fetches a strategy init receipt account's data
|
|
@@ -788,7 +788,7 @@ class VoltrClient extends AccountUtils {
|
|
|
788
788
|
* ```
|
|
789
789
|
*/
|
|
790
790
|
async fetchStrategyInitReceiptAccount(strategyInitReceipt) {
|
|
791
|
-
return await this.vaultProgram.account.strategyInitReceipt.fetch(strategyInitReceipt);
|
|
791
|
+
return await this.vaultProgram.account.strategyInitReceipt.fetch(strategyInitReceipt, "confirmed");
|
|
792
792
|
}
|
|
793
793
|
/**
|
|
794
794
|
* Fetches an adaptor add receipt account's data
|
|
@@ -801,7 +801,7 @@ class VoltrClient extends AccountUtils {
|
|
|
801
801
|
* ```
|
|
802
802
|
*/
|
|
803
803
|
async fetchAdaptorAddReceiptAccount(adaptorAddReceipt) {
|
|
804
|
-
return await this.vaultProgram.account.adaptorAddReceipt.fetch(adaptorAddReceipt);
|
|
804
|
+
return await this.vaultProgram.account.adaptorAddReceipt.fetch(adaptorAddReceipt, "confirmed");
|
|
805
805
|
}
|
|
806
806
|
// --------------------------------------- Helpers
|
|
807
807
|
/**
|