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

feat: Implement ots_getTransactionError endpoints #7316

Merged
merged 5 commits into from Mar 25, 2024

Conversation

AbnerZheng
Copy link
Contributor

close #7309

@@ -45,7 +47,22 @@ where

/// Handler for `ots_getTransactionError`
async fn get_transaction_error(&self, _tx_hash: TxHash) -> RpcResult<String> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we want to make two changes here:

  • change this to Option<Bytes>
  • only return Some if Revert

ref:

https://github.com/ledgerwatch/erigon/blob/aefb97b07d1c4fd32a66097a24eddd8f6ccacae0/core/state_transition.go#L130-L130

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@mattsse mattsse added the A-rpc Related to the RPC implementation label Mar 24, 2024
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm,

I only changed the return value to an Option

@mattsse mattsse enabled auto-merge March 25, 2024 11:36
@mattsse mattsse added this pull request to the merge queue Mar 25, 2024
Merged via the queue into paradigmxyz:main with commit eed60d9 Mar 25, 2024
27 checks passed
@AbnerZheng AbnerZheng deleted the issue-7309 branch March 25, 2024 11:53
Ruteri pushed a commit to Ruteri/reth that referenced this pull request Apr 17, 2024
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Ruteri pushed a commit to Ruteri/reth that referenced this pull request Apr 17, 2024
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement ots_getTransactionError endpoints
2 participants