Add integration tests, README overhaul, and bug fixes#2
Merged
Conversation
Integration tests (tests/integration_tests.zig): - 15 Anvil-backed tests covering chain state, account state, gas, blocks, wallet transactions, and receipt verification - Graceful skip when Anvil is not running README overhaul: - Add "Why eth.zig?" section with key differentiators - Add ERC-20 Quick Start example - Fix HD wallet example to use actual API - Add examples directory table - Add feature comparison vs Zabi - Update module and feature tables with new modules Bug fixes in provider.zig: - Fix use-after-free in extractResultString (was returning slice into freed JSON parser memory) - Fix Zig 0.15 optional coercion in parseOptionalHash/parseOptionalHexU64 Bug fix in wallet.zig: - Fix std.time.sleep -> std.Thread.sleep for Zig 0.15
- bench/bench.zig: 11 benchmarks (keccak, secp256k1, ABI encode/decode, RLP, tx serialization, HD wallet, EIP-712, address checksum) - build.zig: add `zig build bench` step (always ReleaseFast) - CONTRIBUTING.md: build/test/PR guidelines + architecture diagram - CHANGELOG.md: full v0.1.0 feature list - .github/ISSUE_TEMPLATE: bug report + feature request templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
provider.zig(extractResultString returning slice into freed memory)Test plan
zig build test-- all unit tests passzig fmt --check src/ tests/-- formatting cleanzig build integration-test -Doptimize=ReleaseSafe-- compiles and skips gracefully without AnvilGenerated with Claude Code