-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't make assumptions about expiration
The `signedAuthEntry` assembled in `submitTx` must have a `signatureExpirationLedger` that matches the one initially created in `invoke`. Given that significant time may have passed between the initial `invoke` call and the `submitTx` call, we cannot assume that the state expiration has remained unchanged. It's safer to use the initial value that was created in `invoke`. The most straightforward way to accomplish this was to return `xdr.HashIdPreimage` objects, rather than hashes of them. This requires some more work on the part of the consumer: they now need to import `hash` and create `payload` themself, as well as keeping the original `signHere` around to send along to the `submitTx` call.
- Loading branch information
Showing
4 changed files
with
59 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters