@bithomp/xrpl-api 3.4.2 → 3.4.3

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.
@@ -133,6 +133,7 @@ async function getTransactions(account, options = { limit: DEFAULT_LIMIT }) {
133
133
  if (response.warnings && response.warnings.length > 0) {
134
134
  result.warnings = response.warnings;
135
135
  }
136
+ result.bithompHash = connection.hash;
136
137
  return result;
137
138
  }
138
139
  async function findTransactionsExt(account, options = { limit: DEFAULT_LIMIT, timeout: 15000 }) {
@@ -213,11 +214,14 @@ async function findTransactionsExt(account, options = { limit: DEFAULT_LIMIT, ti
213
214
  markerTransaction = newTransactions[transactionsToTake];
214
215
  }
215
216
  if (markerTransaction) {
217
+ const bithompHash = loadOptions.marker?.bithompHash || accountTransactions.bithompHash;
216
218
  loadOptions.marker = {
217
219
  ledger: markerTransaction.tx.ledger_index,
218
220
  seq: markerTransaction.meta.TransactionIndex,
219
- bithompHash: loadOptions.marker.bithompHash,
220
221
  };
222
+ if (bithompHash) {
223
+ loadOptions.marker.bithompHash = bithompHash;
224
+ }
221
225
  }
222
226
  }
223
227
  newTransactions = newTransactions.slice(0, transactionsToTake);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bithomp/xrpl-api",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",