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: debug block #1011

Merged
merged 8 commits into from
Apr 24, 2024
Merged

feat: debug block #1011

merged 8 commits into from
Apr 24, 2024

Conversation

greged93
Copy link
Contributor

Time spent on this PR: 3 day

Resolves: #1010

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Testing

What is the new behavior?

Adds the debugTraceBlockByNumber and debugTraceBlockByHash endpoints.

Does this introduce a breaking change?

  • Yes
  • No

src/tracing/builder.rs Show resolved Hide resolved
src/tracing/builder.rs Show resolved Hide resolved
@Eikix Eikix added this pull request to the merge queue Apr 24, 2024
Merged via the queue into kkrt-labs:main with commit 059e6a0 Apr 24, 2024
5 checks passed
anukkrit149 pushed a commit to karnotxyz/kakarot-rpc that referenced this pull request Aug 9, 2024
Made coinbase storage var a constructor argument rather than a hardcoded
value.

Time spent on this PR: 1 hour
(methodology: searched the whole source tree for "coinbase", "0xCA40",
"precompiles", and "uninitialized")

## Pull request type

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [X] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):

## What is the current behavior?

Currently Coinbase is a hardcoded constant value
(0xCA40796aFB5472abaeD28907D5ED6FC74c04954a) duplicated in a few places
in the .py and .cairo sources.

Resolves kkrt-labs#1011

## What is the new behavior?

That constant is now defined in a single location in constants.py and
imported as needed. Accordingly, codebase is also passed as a new
argument in the "kakarot" and "EVM" constructors.

<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/kkrt-labs/kakarot/1069)
<!-- Reviewable:end -->

---------

Co-authored-by: Rene Doursat <[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.

feat: add debug_traceBlock
3 participants