@bithomp/xrpl-api 3.1.1 → 3.1.2
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/lib/ledger/account_tx.js +8 -2
- package/package.json +8 -8
package/lib/ledger/account_tx.js
CHANGED
|
@@ -188,10 +188,16 @@ async function applyStartTxOptions(options) {
|
|
|
188
188
|
meta: accountTransaction.meta,
|
|
189
189
|
};
|
|
190
190
|
if (options.forward === true) {
|
|
191
|
-
|
|
191
|
+
const ledgerIndex = options.startTx.tx.ledger_index;
|
|
192
|
+
if (options.ledgerIndexMin === undefined || ledgerIndex > options.ledgerIndexMin) {
|
|
193
|
+
options.ledgerIndexMin = ledgerIndex;
|
|
194
|
+
}
|
|
192
195
|
}
|
|
193
196
|
else {
|
|
194
|
-
|
|
197
|
+
const ledgerIndex = options.startTx.tx.ledger_index;
|
|
198
|
+
if (options.ledgerIndexMax === undefined || ledgerIndex < options.ledgerIndexMax) {
|
|
199
|
+
options.ledgerIndexMax = ledgerIndex;
|
|
200
|
+
}
|
|
195
201
|
}
|
|
196
202
|
}
|
|
197
203
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bithomp/xrpl-api",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
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",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
"@types/chai-as-promised": "^7.1.8",
|
|
67
67
|
"@types/lodash": "^4.17.7",
|
|
68
68
|
"@types/mocha": "^10.0.7",
|
|
69
|
-
"@types/nconf": "^0.10.
|
|
69
|
+
"@types/nconf": "^0.10.7",
|
|
70
70
|
"@types/node": "^20.14.11",
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
72
|
-
"@typescript-eslint/parser": "^7.
|
|
73
|
-
"chai": "^4.
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
72
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
73
|
+
"chai": "^4.5.0",
|
|
74
74
|
"chai-as-promised": "^7.1.2",
|
|
75
75
|
"eslint": "^8.57.0",
|
|
76
76
|
"eslint-config-prettier": "^9.1.0",
|
|
77
|
-
"eslint-plugin-chai-friendly": "^1.0.
|
|
77
|
+
"eslint-plugin-chai-friendly": "^1.0.1",
|
|
78
78
|
"eslint-plugin-import": "^2.29.1",
|
|
79
|
-
"eslint-plugin-n": "^17.
|
|
80
|
-
"eslint-plugin-promise": "^
|
|
79
|
+
"eslint-plugin-n": "^17.10.1",
|
|
80
|
+
"eslint-plugin-promise": "^7.0.0",
|
|
81
81
|
"mocha": "^10.7.0",
|
|
82
82
|
"nconf": "^0.12.1",
|
|
83
83
|
"ts-jest": "^29.2.3",
|