Skip to content

✨ feat: support Hardhat console logs - #2096

Open
roninjin10 wants to merge 1 commit into
mainfrom
shepherd/tevm-monorepo-issue-2057
Open

✨ feat: support Hardhat console logs#2096
roninjin10 wants to merge 1 commit into
mainfrom
shepherd/tevm-monorepo-issue-2057

Conversation

@roninjin10

Copy link
Copy Markdown
Collaborator

Summary

  • add an opt-in console precompile for Hardhat and forge-std log calls
  • decode supported selectors safely without allowing logging failures to affect EVM execution
  • expose node and memory-client configuration, documentation, and integration coverage

Testing

  • bunx pnpm@10.33.4 exec nx run-many --target=test:coverage --projects=@tevm/precompiles,@tevm/node,@tevm/memory-client --output-style=static
  • bunx pnpm@10.33.4 exec nx run-many --targets=build:types,typecheck --projects=@tevm/utils,@tevm/precompiles,@tevm/node,@tevm/memory-client --output-style=static
  • bunx pnpm@10.33.4 exec nx run-many --targets=lint:check,format:check --projects=@tevm/utils,@tevm/precompiles,@tevm/node,@tevm/memory-client --output-style=static
  • manually compiled and executed a contract importing hardhat/console.sol

Closes #2057

Thanks to @wighawag for the report.

Deliver evmts/tevm issue #2057 — hardhat console log.

Add opt-in Hardhat and forge-std console logging during EVM execution.

<prompt>
Deliver evmts/tevm issue #2057 — hardhat console log.
</prompt>
@changeset-bot

changeset-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 308881a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@tevm/precompiles Major
@tevm/node Major
@tevm/memory-client Major
@tevm/utils Major
tevm Major
tevm-run Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
node Ready Ready Preview Aug 7, 2026 3:59am
tevm-monorepo-app Ready Ready Preview Aug 7, 2026 3:59am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
tevm-monorepo-tevm Ignored Ignored Aug 7, 2026 3:59am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@roninjin10, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 23 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c757bf2f-800b-4345-9cfb-a669bf873a51

📥 Commits

Reviewing files that changed from the base of the PR and between 6199d04 and 308881a.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (14)
  • .changeset/quiet-games-log.md
  • docs/node/pages/advanced/custom-precompiles.mdx
  • packages/memory-client/package.json
  • packages/memory-client/src/test/consoleLog.spec.ts
  • packages/memory-client/src/test/consoleLogRuntimeBytecode.ts
  • packages/node/src/TevmNodeOptions.ts
  • packages/node/src/createTevmNode.js
  • packages/node/src/createTevmNode.spec.ts
  • packages/precompiles/src/consoleLog.precompile.spec.ts
  • packages/precompiles/src/consoleLog.precompile.ts
  • packages/precompiles/src/index.ts
  • packages/utils/src/abitype.ts
  • packages/utils/src/index.ts
  • packages/utils/src/viem.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@claude

claude Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

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.

hardhat console log

1 participant