-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
refactor!: use submit_and_await_commit
API
#1187
Conversation
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.
Could you elaborate a bit more on what problem inspired this change?
Why are we deleting await_transaction_commit
? Then we are no longer able to call submit
and await at a later point in the code.
4d6d4fd
to
23787c9
Compare
@MujkicA I added some more context and re-added the removed function. |
submit_and_await_commit
APIsubmit_and_await_commit
API
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.
Great works! Thanks!
@FuelLabs/sdk-rust can we please move this forward |
Closes #1180, #1128.
This PR uses the correct API for sending a transaction and ensuring that we wait for the commit of the transaction before returning.
This is needed because otherwise there might be a disconnect between submitting the transaction and awaiting for its commit, if it is done using the two separate APIs as before.
Further work will be needed as part of #1188
BREAKING CHANGE:
send_transaction_and_await_commit
function now returns aTxStatus
instead ofTxId
.