Skip to content
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 the return value of builder transaction status API #3943

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

dailinsubjam
Copy link
Contributor

@dailinsubjam dailinsubjam commented Dec 4, 2024

This PR:

This PR does not:

Key places to review:

@dailinsubjam dailinsubjam requested review from shenkeyao and QuentinI and removed request for bfish713 December 4, 2024 09:12
@dailinsubjam dailinsubjam requested a review from jbearer December 4, 2024 09:12
Copy link
Contributor

@ss-es ss-es left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

I might be misunderstanding the fix though, doesn't the code still do exactly the same thing as before?

@shenkeyao
Copy link
Member

Having the same question as @ss-es about the change. 🤔

@dailinsubjam
Copy link
Contributor Author

@ss-es @shenkeyao Original code will return Ok(transaction_commit), after the fix it will return Result(TransactionStatus, BuildError). Or am I missing anything?

@ss-es
Copy link
Contributor

ss-es commented Dec 5, 2024

Oh sorry, I see - yes you're completely right! It used to return Result<tx.commit(), Error::TxnStat> but now it returns something like Result<state.txn_status, Error::TxnStat>

ignore my comment -- it looks good to me!

@shenkeyao
Copy link
Member

@ss-es @shenkeyao Original code will return Ok(transaction_commit), after the fix it will return Result(TransactionStatus, BuildError). Or am I missing anything?

Totally makes sense. 😃

@dailinsubjam dailinsubjam merged commit 9b0706e into main Dec 6, 2024
18 checks passed
@dailinsubjam dailinsubjam deleted the sishan/txn_stat_api_ret branch December 6, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Documentation] - Add builder transaction status API to gitbook
4 participants