@triadxyz/poseidons-protocol 0.1.8 → 0.1.9

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.
@@ -39,7 +39,7 @@ class Chest {
39
39
  getChest(id) {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
41
  const chestPDA = (0, pda_1.getChestPDA)(id);
42
- const chest = yield this.program.account.chest.fetch(chestPDA);
42
+ const chest = yield this.program.account.chest.fetch(chestPDA, this.rpcOptions.commitment);
43
43
  return (0, helpers_1.formatChest)(chest, chestPDA);
44
44
  });
45
45
  }
package/dist/index.js CHANGED
@@ -90,7 +90,7 @@ class PoseidonsProtocolClient {
90
90
  getUser(authority) {
91
91
  return __awaiter(this, void 0, void 0, function* () {
92
92
  const userPDA = (0, pda_1.getUserPDA)(authority);
93
- const user = yield this.program.account.user.fetch(userPDA);
93
+ const user = yield this.program.account.user.fetch(userPDA, this.rpcOptions.commitment);
94
94
  return (0, helpers_1.formatUser)(user, userPDA);
95
95
  });
96
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/poseidons-protocol",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",