bug(anvil
): unable to submit blob transaction
#8447
Labels
Milestone
anvil
): unable to submit blob transaction
#8447
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (de33b6a 2024-07-03T14:00:39.781698671Z)
What command(s) is the bug in?
No response
Operating System
Linux
Describe the bug
Anvil throws an error, when it's sent valid blob transactions.
I've written a repo and test to highlight the bug here: https://github.com/iAmMichaelConnor/demo-anvil-blob-issue
Details of how to build the repo and run the failing test are in the README.
The test successfully runs when using a "Hardhat Network Node", but not when using an Anvil node. The fact that viem, cKzg, a hardhat node, and a Solidity contract compiled via forge, all work together to result in a passing test, suggests to me that it's Anvil that's likely got a bug interpreting blob txs.
When submitting a blob tx, Anvil says:
Details of the test:
The test seeks to submit a blob transaction. Using viem and cKzg, I construct a valid blob transaction and send it via viem's
sendRawTransaction()
method. UsingsendRawTransaction
ensures a Hardhat node can understand the blobby tx format. I've not been able to get Anvil to correctly interpret the data, regardless of how I send the tx. A Solidity contract - compiled via forge -- then accepts the blob and stores its versionedHash. A second tx then verifies thte kzg proof.This test fails when using Anvil.
The failing test is triggered via:
yarn test:anvil
whereas the passing test is triggered via:
yarn test:hardhat
Thanks for reading! :)
The text was updated successfully, but these errors were encountered: