Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@thomas-nguy
Copy link
Contributor

@thomas-nguy thomas-nguy commented Jul 17, 2025

Description

Problem: The node panic for an empty request
e.g

grpcurl -plaintext localhost:9090 cosmos.evm.vm.v1.Query/TraceTx

Solution: Add more sanity check

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • tackled an existing issue or discussed with a team member
  • left instructions on how to review the changes
  • targeted the main branch

Reviewers Checklist

All items are required.
Please add a note if the item is not applicable
and please add your handle next to the items reviewed
if you only reviewed selected items.

I have...

  • added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • confirmed all author checklist items have been addressed
  • confirmed that this PR does not change production code
  • reviewed content
  • tested instructions (if applicable)
  • confirmed all CI checks have passed

@thomas-nguy thomas-nguy changed the title fix(grpc): add sanity check to trace_tx and trace_call fix(grpc): add sanity check to trace_tx Jul 17, 2025
@vladjdk
Copy link
Member

vladjdk commented Jul 17, 2025

@thomas-nguy lints failing

Copy link
Member

@vladjdk vladjdk left a comment

Choose a reason for hiding this comment

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

LGTM

@aljo242
Copy link
Contributor

aljo242 commented Jul 17, 2025

@thomas-nguy looks like we need a lint fix

@aljo242 aljo242 enabled auto-merge July 18, 2025 18:59
@aljo242 aljo242 requested review from a team as code owners July 18, 2025 18:59
@aljo242 aljo242 added this pull request to the merge queue Jul 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jul 18, 2025
@technicallyty technicallyty added this pull request to the merge queue Jul 18, 2025
Merged via the queue into cosmos:main with commit 9ad7d66 Jul 18, 2025
14 checks passed
jeremyletang added a commit to mezo-org/mezod that referenced this pull request Jul 22, 2025
Signed-off-by: Jeremy Letang <[email protected]>
lukasz-zimnoch added a commit to mezo-org/mezod that referenced this pull request Jul 22, 2025
close:
https://linear.app/thesis-co/issue/TET-1386/patch-a-tracetx-dos-vector-in-the-grpc-api

### Introduction

Backport fixes from cosmos/evm regarding a panic which could happen when
calling traceTx directly from the grpc API.

### Changes

Add validation fo the req.Msg field in appropriate places

### Testing

N/A

### Author's checklist

- [x] Provided the appropriate description of the pull request
- [x] Updated relevant unit and integration tests
- [x] Updated relevant documentation (`docs/`) or specification
(`x/<module>/spec/`)
- [x] Assigned myself in the `Assignees` field
- [x] Assigned `mezod-developers` in the `Reviewers` field and notified
them on Discord

### Reviewer's checklist

- [ ] Confirmed all author's checklist items have been addressed
- [ ] Considered security implications of the code changes
- [ ] Considered performance implications of the code changes
- [ ] Tested the changes and summarized covered scenarios and results in
a comment
lukasz-zimnoch pushed a commit to mezo-org/mezod that referenced this pull request Jul 23, 2025
zsystm pushed a commit to zsystm/evm that referenced this pull request Nov 2, 2025
* fix tracetx

* update changelog

* fix lint

* fix unit tests

* fix unit tests

---------

Co-authored-by: Alex | Interchain Labs <[email protected]>
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.

4 participants