-
Notifications
You must be signed in to change notification settings - Fork 117
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
FCL Feature: Calculate the transaction hash #840
Conversation
Thanks for your contribution @avcdsld! This is looking quite solid overall. 👏 |
packages/sdk/src/resolve/voucher.js
Outdated
@@ -54,3 +55,8 @@ export const createSignableVoucher = ix => { | |||
envelopeSigs: buildOutsideSigners(), | |||
} | |||
} | |||
|
|||
export const voucherToTxId = voucher => { | |||
// ref. https://github.com/onflow/flow-go-sdk/blob/d794a2/transaction.go#L119 |
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.
Can remove comment
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.
Ok. Removed👍
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.
Thanks @avcdsld We're just aligning internally about any last requests before merge but consider this milestone submission approved!
Thanks so much for this @avcdsld and continuing to be an amazing member of the Flow community. |
Thank you @avcdsld ! This is an excellent addition to FCL 😄 |
Merged into master @avcdsld 🚀 Thank you for your contribution and support! |
Thanks @avcdsld ! Great contribution. |
Closes:
Description
(Partial copy from FLIP Fest issue 24)
Right now, there's no way to get the transaction hash before it's sent to the blockchain. Pre-calculating the transaction hash will allow for error recovery if there are any network connection issues during the submission of the transaction.
Features
Other
This is features addition to
@onflow/sdk
. After the@onflow/sdk
version is upgraded, the following changes to fcl will make it available to fcl. This is a very trivial change.packages/fcl/src/fcl.js