-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Base fee causes error in forked Rinkeby network on first transaction #1863
Comments
thanks for reporting, if I read that correctly it looks like we should be using the basefee of the last block when in fork mode? |
That would make sense, but then the problem is that rinkeby's non-existent >0 base fee causes transaction errors but I am not sure why. Possibly unrelated, but I am also unable to deploy (using RPCs / Anvil only) when using a forked network and an account from the mnemonic. The transaction always fails and does not give any reason. |
mind trying again with this PR #1865 ? |
Amazing! this seems to fix the problem entirely :) |
@mattsse I think like in that other case we had encountered (around the EVM gasprice when forking), we should be making the anvil |
currently, we have |
Yep, I think so. |
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (3fc1491 2022-06-06T00:14:30.023454Z)
What command(s) is the bug in?
anvil --mnemonic "test test test test test test test test test test test junk" --accounts 10 --derivation-path "m/44'/60'/0'" --fork-url https://eth-rinkeby.alchemyapi.io/v2/key-that-i-did-not-paste
Operating System
macOS (Intel)
Describe the bug
Steps to repro:
Step 1: Launch anvil using a forked Rinkeby network
Step 2: Make any transaction and set the base fee to the base fee of the "latest" block (e.g. the default way to do it?)
Step 3: Notice the transaction fails
Step 4: Make transaction again
Step 5: Notice everything works as expected after first transaction (consistently)
Reasons maybe:
The base fee on the latest block from Rinkeby is minute, e.g.
14
last I checkedEvery subsequent block in Anvil uses 1000000000. If I manually set my base fee to 1000000000 on the first transaction, it will succeed.
NOTE: When using Hardhat, I do not have this problem.
The text was updated successfully, but these errors were encountered: