Commits
Click on a commit to change the comparison rangefeat: add custom precompile with journal access example
This example demonstrates how to create a custom precompile that can
access and modify the journal (state). Key features:
- CustomPrecompileProvider that extends EthPrecompiles
- Precompile at address 0x0100 with journal access
- Storage read/write operations using journal.sload/sstore
- Balance transfers using journal.transfer
- Proper gas accounting and error handling
The example shows how to integrate custom precompiles with existing
Ethereum precompiles and provides clear documentation on usage patterns.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com> fix: resolve compilation errors and apply clippy suggestions in custom precompile journal example
- Fix Handler::mainnet() API usage by using MainnetHandler::default()
- Add missing imports for ContextSetters, EVMError, and InvalidTransaction
- Fix output.data() pattern matching from optional to direct access
- Add proper type annotations with error type alias
- Correct mutable borrowing patterns for database access
- Apply clippy suggestions for inline format args
- Ensure clean compilation with no warnings
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com> style: apply cargo fmt to custom precompile journal example
- Format multi-line println\! statements to single lines where appropriate
- Ensure consistent code formatting across the codebase
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>