-
Notifications
You must be signed in to change notification settings - Fork 313
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/sign transaction type #1097
Conversation
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple nits, but mostly this looks good. Thank you, @BlaineHeffron!
Fixed @chadoh's comments. Although it did bring up a point that I forgot to mention - the type in |
Ahhh, what a bummer. This is a big breaking change; changing the interface again later is going to be another big breaking change. Best to only have one! I think SEP-43 is the standard, and wallets have started implementing it. For example, Freighter returns the optional error. If the types a developer imports from their wallet library mismatch the types in the js sdk, that's a bug. We need to avoid it. Let's patch the |
Can you rebase this onto master? It seems like there's a lot of irrelevant changes in the commit log. Also, would you say this is a blocker for v22 stable release? If so please prioritize it 🙏 |
f53966d
to
c58d82d
Compare
Yeah I'll fix it, I rebased onto master but something weird happened... |
format Co-authored-by: Chad Ostrowski <221614+chadoh@users.noreply.github.com>
more clear wording Co-authored-by: Chad Ostrowski <221614+chadoh@users.noreply.github.com>
more description Co-authored-by: Chad Ostrowski <221614+chadoh@users.noreply.github.com>
c58d82d
to
c91261e
Compare
@Shaptic Should be fixed now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, super easy to read now! Looks great! And ty for the changelog 👏
Convert
signTransaction
andsignAuthEntry
types used inAssembledTransaction
to new Sep43 spec.Resolves #1054
Note that for now it adds a dependency for the "@creit.tech/stellar-wallets-kit" package for the new types. This should be changed to the Wallet SDK once it has been updated to export these types.
Currently for testing I just changed the
basicNodeSigner
to match the new argument and return types, which makes all the tests pass.