Skip to content

Commit 65cc860

Browse files
authored
Release beta.4 with a sequence number bugfix. (#711)
1 parent 5ed52ab commit 65cc860

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33

44
## Unreleased
55

6+
7+
## [`v10.0.0-beta.4`](https://github.com/stellar/js-stellar-base/compare/v10.0.0-beta.3...v10.0.0-beta.4)
68
### Fixed
7-
- The type definition for `Memo.hash` now allows `Buffer`s ([#698](https://github.com/stellar/js-stellar-base/pull/698)).
9+
- You can now correctly clone transactions (`TransactionBuilder.cloneFrom`) with large sequence numbers ([#711](https://github.com/stellar/js-stellar-base/pull/711)).
810

911

1012
## [`v10.0.0-beta.3`](https://github.com/stellar/js-stellar-base/compare/v10.0.0-beta.2...v10.0.0-beta.3)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stellar-base",
3-
"version": "10.0.0-beta.3",
3+
"version": "10.0.0-beta.4",
44
"description": "Low-level support library for the Stellar network.",
55
"main": "./lib/index.js",
66
"browser": {

src/transaction_builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class TransactionBuilder {
181181
throw new TypeError(`expected a 'Transaction', got: ${tx}`);
182182
}
183183

184-
const sequenceNum = `${parseInt(tx.sequence, 10) - 1}`;
184+
const sequenceNum = (BigInt(tx.sequence) - 1n).toString();
185185

186186
let source;
187187
// rebuild the source account based on the strkey

0 commit comments

Comments
 (0)