Skip to content

test: fix failing test_simulate_succeeds on anvil@1.8.1 - #104

Merged
0xNeshi merged 1 commit into
mainfrom
test-fix-for-anvil-1.8.1
Sep 4, 2026
Merged

test: fix failing test_simulate_succeeds on anvil@1.8.1#104
0xNeshi merged 1 commit into
mainfrom
test-fix-for-anvil-1.8.1

Conversation

@0xNeshi

@0xNeshi 0xNeshi commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Needed for #103, as it fixes its failing CI.

Cause

  • The test workflow installs Foundry with no version input, so foundry-toolchain installs the current stable. The last green run on Aug 26 got anvil 1.7.1. The failing run on Sep 2 got anvil 1.8.1, released Aug 28.

  • Foundry PR #15792 (in 1.8.0) makes anvil honor the validation: true flag of eth_simulateV1. It now enforces fee checks and returns the spec error codes -38010 to -38014.

  • The test in tests/eth_namespace/call.rs:131-153 sends a call with no fee fields and validation: true. Anvil 1.8.1 answers:

    {"code":-38012,"message":"err: max fee per gas less than block base fee"}
  • The robust provider treats this error as retryable in src/robust_provider/errors.rs:123, so it retries until the 5 second call timeout and reports Operation timed out. That hides the real error.

@0xNeshi
0xNeshi merged commit 46f9ff1 into main Sep 4, 2026
15 checks passed
@0xNeshi
0xNeshi deleted the test-fix-for-anvil-1.8.1 branch September 4, 2026 09:42
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.

2 participants