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

feature: debug_traceCall RPC support #384

Closed

Conversation

XinyuCRO
Copy link

@XinyuCRO XinyuCRO commented Dec 7, 2023

Description

This PR introduces the debug_traceCall RPC method


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

calvinaco and others added 29 commits October 26, 2023 07:37
Solution: Implemented the RPC
…feature/debug_tracecall-debug

# Conflicts:
#	go.mod
#	proto/ethermint/evm/v1/evm.proto
#	tests/integration_tests/expected_constants.py
#	x/evm/types/evm.pb.go
#	x/evm/types/query.pb.go
…feature/debug_tracecall-debug

# Conflicts:
#	proto/ethermint/evm/v1/trace_config.proto
#	rpc/backend/backend.go
#	rpc/backend/tracing_test.go
#	tests/integration_tests/test_tracers.py
#	x/evm/keeper/grpc_query.go
…feature/debug_tracecall-debug

# Conflicts:
#	x/evm/keeper/grpc_query.go
#	x/evm/keeper/state_transition.go

tCtx := &tracers.Context{
BlockHash: txConfig.BlockHash,
TxIndex: int(txConfig.TxIndex),

Check failure

Code scanning / gosec

Potential integer overflow by integer type conversion Error

Potential integer overflow by integer type conversion
return 0, errorsmod.Wrapf(errortypes.ErrInvalidHeight, "uint value %v cannot exceed %v", value, int(math.MaxInt64))
}

return int(value), nil

Check failure

Code scanning / gosec

Potential integer overflow by integer type conversion Error

Potential integer overflow by integer type conversion
@XinyuCRO XinyuCRO marked this pull request as ready for review January 4, 2024 03:32
rpc/backend/tracing.go Outdated Show resolved Hide resolved
@yihuang yihuang self-requested a review January 4, 2024 04:34
@yihuang
Copy link
Collaborator

yihuang commented Jan 4, 2024

@XinyuCRO can you check the "allow maintainers to edit" so we can directly fix some small issues.

Copy link
Collaborator

@mmsqe mmsqe left a comment

Choose a reason for hiding this comment

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

just config nitpick, others LGTM

rpc/backend/backend.go Outdated Show resolved Hide resolved
rpc/backend/tracing.go Outdated Show resolved Hide resolved
rpc/backend/tracing.go Outdated Show resolved Hide resolved
rpc/namespaces/ethereum/debug/api.go Outdated Show resolved Hide resolved
tests/integration_tests/test_tracers.py Outdated Show resolved Hide resolved
@XinyuCRO XinyuCRO mentioned this pull request Jan 5, 2024
11 tasks
@XinyuCRO
Copy link
Author

XinyuCRO commented Jan 5, 2024

I create another PR #390 to resolve this commit sign issue, this one can be closed

@yihuang yihuang closed this Jan 5, 2024
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