@stellar/typescript-wallet-sdk 2.0.0 → 3.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar/typescript-wallet-sdk",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "@stablelib/base64": "^2.0.0",
49
49
  "@stablelib/utf8": "^2.0.0",
50
- "@stellar/stellar-sdk": "14.5.0",
50
+ "@stellar/stellar-sdk": "15.0.1",
51
51
  "axios": "^1.4.0",
52
52
  "base64url": "^3.0.1",
53
53
  "https-browserify": "^1.0.0",
@@ -339,14 +339,15 @@ describe("Anchor", () => {
339
339
  expect(transactions.length === 2).toBeTruthy();
340
340
  });
341
341
 
342
- it("should accept any paging id when fetching transactions", async () => {
343
- const transactions = await anchor.sep24().getTransactionsForAsset({
344
- authToken,
345
- assetCode: "SRT",
346
- lang: "en-US",
347
- pagingId: "randomPagingId",
348
- });
349
- expect(transactions).toBeDefined();
342
+ it("should pass through paging id to the server", async () => {
343
+ await expect(
344
+ anchor.sep24().getTransactionsForAsset({
345
+ authToken,
346
+ assetCode: "SRT",
347
+ lang: "en-US",
348
+ pagingId: "randomPagingId",
349
+ }),
350
+ ).rejects.toThrow(ServerRequestFailedError);
350
351
  });
351
352
 
352
353
  describe("watchAllTransactions", () => {