-
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
Cast is (likely) querying the wrong RPC provider #8831
Comments
I also tried this in someone else's laptop and got the same result. |
could you share RUST_LOG=trace cast .. only need the first few lines |
|
hmm, the trace you've shared is empty, and immidiately stops, which is what a call to EOA look like, how does command output imply that address has code? |
I am claiming that the address |
calls to EOA do not revert, this is basically just a zero value transfer |
Are you reffering to the first call?
It is definitely doing something, it even has the function name |
It immediately stops execution (and uses 0 gas) foundry automatically decodes the function selector and arguments from calldata for any calls, contract's code does not affect this behavior |
To clarify, I just numbered the calls, the bug I'm reporting is for call #1. It should fail instead of making up a trace. Am I missing something? |
If this is the expected behaviour, then I find it very misleading that it reports "Transaction successfully executed" and non-zero gas usage without a warning. |
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (fa0e0c2 2024-08-22T00:19:05.210000000Z)
What command(s) is the bug in?
cast call
Operating System
macOS (ARM)
Describe the bug
Call #1
But then that address doesn't have code on OP Sepolia:
Call #2
The explorer also confirms the address doesn't have any bytecode: https://sepolia-optimism.etherscan.io/address/0xB880785961B8fC4630dDa03B439D07009464111f
The contract does have bytecode in Sepolia (eth), so my guess is that cast is somehow using a Sepolia RPC, but I couldn't confirm this.
The text was updated successfully, but these errors were encountered: