-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
Description
Environment information
- Operating System: macOS Sonoma 14.1
- Supersim Version: Commit
Foundry version.
forge 0.3.0 (5a8bd89 2024-12-20T08:45:53.204298000Z)
Describe the bug
Large read calls on forked OP Mainnet time out consistently. Simpler calls to the same contract return data successfully.
Steps to reproduce
- Setup docker per README.
- Create env file in same directory per below and add with your own OP mainnet RPC
SUPERSIM_RPC_URL_OP=https://....
- Run docker with config
docker run --rm -it -p 4444:4444 --env-file my-rpc.env supersim:latest fork --l2.host=0.0.0.0 --l2.starting.port=4444 --chains=op,mode
- Observe console output confirming RPC override
detected rpc override name=op
- Make calls.
% cast call 0x7F6D3A4c8a1111DDbFe282794f4D608aB7Cb23A2 "MAX_TOKENS()(uint256)" --rpc-url http://localhost:4444
2000
% cast call 0x7F6D3A4c8a1111DDbFe282794f4D608aB7Cb23A2 "tokens(uint256,uint256,address,address[])" 1000 0 0x0000000000000000000000000000000000000000 "[]" --rpc-url http://localhost:4444
Error: error sending request for url (http://localhost:4444/)
Context:
- Error #0: error sending request for url (http://localhost:4444/)
- Error #1: operation timed out
Comments
I was able further to repro this on our web app, where the same call hangs indefinitely. Wanted to note that the private RPC var I'm using is the same that we use on our web app so it already handles these size calls in dev/production so it should be able to handle them when used with supersim.
Ref link for function
jakim929