stellar / js-stellar-sdk

Main Stellar client library for the JavaScript language.
https://stellar.github.io/js-stellar-sdk/
Apache License 2.0
615 stars 296 forks source link

fix: update simulationData after re-simulation #985

Closed chadoh closed 3 weeks ago

chadoh commented 1 month ago

The new test added here shows that you can edit a transaction with tx.raw = cloneFrom(tx.build) and that the tx.simulationData will be updated correctly.

simulationData is effectively a cache, and we need to make sure we clear it when you re-simulate.

chadoh commented 3 weeks ago

Added the changelog entry. One of these days I'll start remembering without being asked! 😅