You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: bump revm 25
* more saturating
* feat: complete revm v25 migration with proper type conversions
## Original Task
Complete the migration to revm v25 and follow the hints in issue #99:
- Change `ResultAndState<Halt, EvmState>` to `ResultAndState<ExecutionResult<Halt>, EvmState>`
- For block numbers and timestamps, use `saturating_to()` when converting from U256 to u64
## Changes Applied
### Type System Updates
- Updated all `ResultAndState` signatures from `ResultAndState<HaltReason, EvmState>`
to `ResultAndState<ExecutionResult<HaltReason>, EvmState>` across:
- Core `Evm` trait definitions in `src/evm.rs`
- Ethereum implementation in `src/eth/mod.rs`
- OP implementation in `src/lib.rs`
- Either wrapper in `src/either.rs`
- All system call implementations (EIP-2935, EIP-4788, EIP-7002, EIP-7251)
### U256 to u64 Conversions
- Added `saturating_to()` method calls for all U256 to u64 conversions:
- `block().number.saturating_to()` for block number conversions
- `block().timestamp.saturating_to()` for timestamp conversions
- Applied across both `alloy-evm` and `alloy-op-evm` crates
### EVM Integration Updates
- Replaced manual `transact()` + `journaled_state.finalize()` pattern with `transact_finalize()`
- Updated Account struct initialization to include required `transaction_id: 0` field
- Simplified transaction execution logic using revm v25's improved API
### Import Updates
- Added `ExecutionResult` and `EvmState` imports where needed
- Removed unused `InspectEvm` imports
- Updated import paths for revm v25 module structure
## Testing
- All existing tests pass
- Build completes without warnings
- Both `alloy-evm` and `alloy-op-evm` crates compile successfully
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* rusfmt
* bump
* bumo
* chore: bump revm 26
* chore: bump revm v26.0.0 (#105)
fix compilation
---------
Co-authored-by: Claude <[email protected]>
Co-authored-by: Arsenii Kulikov <[email protected]>
Co-authored-by: rakita <[email protected]>
0 commit comments