-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cast run
crashes when execution transactions from a hardhat node
#2687
Comments
Probably related to us not padding some parameters correctly for Hardhat |
@onbjerg I think your hypothesis is correct, given how the |
I'm also getting this problem when deploying some contracts using The current workaround is to revert the |
I came to report this same thing (errors using the script functionality to deploy to hardhat) and realized this is related to the report I made in hardhat#2581. Not sure if this callsite is the same one that was involved in that older issue (#1297). Would be lovely to not have to hold back hardhat version.
|
this is a bit confusing because this spec does say it's a QUANTITY https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getstorageat |
I see you've been talking to the HH guys but I honestly believe they made a mistake with the spec. I'm going to post over there... |
@aathan you really did the lord's work here by chasing this down on multiple repos in the Ethereum space (including raising this to the ethereum team on their spec), and thanks to that, made the ecosystem a little better for everyone :) @mattssee - feel free to close this now if you want! Just tested the script that was throwing this error against |
Thanks for the shoutout @pedroyan . I think there may remain a concern about "QUANTITY" handling across the same constellation of projects (NomicFoundation/hardhat#3164 (comment)). Just something to keep your eyes on. I'll be back if I run into anything that seems related. |
awesome, thank you so much @aathan |
indeed - great work tracking this down @aathan, thank you! |
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (63ed109 2022-08-09T00:03:50.892098571Z)
What command(s) is the bug in?
cast run
Operating System
Linux
Describe the bug
When running
cast run
with a transaction from a hardhat node,cast
crashesRunning command with

RUST_LOG=backend,node,miner
outputs:The text was updated successfully, but these errors were encountered: