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: enhance debug_traceTransaction to work with Opcode Logger #2480

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

victor-yanev
Copy link
Contributor

@victor-yanev victor-yanev commented May 13, 2024

Description:

With the implemenation of /api/v1/contracts/results/{transactionIdOrHash}/opcodes in the web3 module of hedera-mirror-node, we can now utilise it by extending our support for debugging transactions.

This PR:

  • makes the neccessery changes to the debug_traceTransaction endpoint
  • adds acceptance tests for calling debug_traceTransaction with TracerType.OpcodeLogger.

Related issue(s):

Fixes #2431

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
@victor-yanev victor-yanev added enhancement New feature or request limechain labels May 13, 2024
@victor-yanev victor-yanev self-assigned this May 13, 2024
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
@victor-yanev victor-yanev marked this pull request as ready for review May 13, 2024 13:10
Copy link

Tests

    2 files  152 suites   13s ⏱️
823 tests 822 ✔️ 1 💤 0
835 runs  834 ✔️ 1 💤 0

Results for commit aed858b.

Copy link

github-actions bot commented May 13, 2024

Acceptance Tests

  18 files  222 suites   33m 7s ⏱️
602 tests 596 ✔️ 3 💤 3
707 runs  701 ✔️ 3 💤 3

Results for commit e6cdf16.

♻️ This comment has been updated with latest results.

@konstantinabl
Copy link
Collaborator

LGTM, one small nit

@victor-yanev victor-yanev marked this pull request as draft May 16, 2024 08:10
Signed-off-by: nikolay <n.atanasow94@gmail.com>
@natanasow natanasow changed the title feat: Enhance debug_traceTransaction to work with Opcode Logger feat: enhance debug_traceTransaction to work with Opcode Logger Jun 6, 2024
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
@victor-yanev victor-yanev added this to the 0.50.0 milestone Jun 6, 2024
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
Copy link

sonarcloud bot commented Jun 6, 2024

Quality Gate Passed Quality Gate passed

Issues
5 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
1.1% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request limechain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance debug_traceTransaction to work with opcode Logger
3 participants