Skip to content

Commit

Permalink
Release beta.4 with a sequence number bugfix. (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Nov 3, 2023
1 parent 5ed52ab commit 65cc860
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

## Unreleased


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


## [`v10.0.0-beta.3`](https://github.com/stellar/js-stellar-base/compare/v10.0.0-beta.2...v10.0.0-beta.3)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stellar-base",
"version": "10.0.0-beta.3",
"version": "10.0.0-beta.4",
"description": "Low-level support library for the Stellar network.",
"main": "./lib/index.js",
"browser": {
Expand Down
2 changes: 1 addition & 1 deletion src/transaction_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class TransactionBuilder {
throw new TypeError(`expected a 'Transaction', got: ${tx}`);
}

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

let source;
// rebuild the source account based on the strkey
Expand Down

0 comments on commit 65cc860

Please sign in to comment.