-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: performing 2nd swap not working #986
Commits on Jun 7, 2024
-
fix: performing 2nd swap not working
The test added here is copying the first few steps of the previous test, "alice swaps bob 10 A for 1 B". For some reason, the second time you simulate this transaction, it is calculating that no non-invoker signing is needed! Haven't figured out why yet. Note that this is an order-dependent test. The new one only functions as expected because mocha runs the tests in the same order every time.
Configuration menu - View commit details
-
Copy full SHA for d7fbc00 - Browse repository at this point
Copy the full SHA d7fbc00View commit details
Commits on Jun 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e17d488 - Browse repository at this point
Copy the full SHA e17d488View commit details -
Adds
AssembledTransaction.toXDR|fromXDR
andClient.txFromXDR
methodsAdds a toXDR and fromXDR for AssembledTransaction class. Also adds a txFromXDR to the Client class. Changes the swap test to use this flow. Limitations: If you use the XDR multi-auth flow, you must re-simulate before the final `signAndSend` call. This is due to the fact that we can't serialize the XDR of the transaction envelope with the results of the simulation. If we want to do this, we would need to add an `AssembledTransaction` type to XDR in `stellar-base`. --------- Co-authored-by: George <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 52b2006 - Browse repository at this point
Copy the full SHA 52b2006View commit details -
Update
simulationData
after re-simulation (stellar#985)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.
Configuration menu - View commit details
-
Copy full SHA for e5b5777 - Browse repository at this point
Copy the full SHA e5b5777View commit details -
Add auto restore functionality for contract client (stellar#991)
Co-authored-by: Chad Ostrowski <[email protected]> Co-authored-by: blaineheffron <[email protected]> Co-authored-by: George <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6e9f9bb - Browse repository at this point
Copy the full SHA 6e9f9bbView commit details -
Add separate
sign
andsend
methods to `contract.AssembledTransact……ion` (stellar#992) * add auto restore functionality for contract client * extract getAccount to utils * add changelog entry for auto restore functionality Co-authored-by: Chad Ostrowski <[email protected]> Co-authored-by: blaineheffron <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cae564f - Browse repository at this point
Copy the full SHA cae564fView commit details -
* Upgrade dev dependencies * Upgrade stellar-base to latest version
Configuration menu - View commit details
-
Copy full SHA for aa9c8f6 - Browse repository at this point
Copy the full SHA aa9c8f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d28cc93 - Browse repository at this point
Copy the full SHA d28cc93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99a1715 - Browse repository at this point
Copy the full SHA 99a1715View commit details