Don't default to default RPC if user input undefined/null RPC url #3361
Unanswered
tonisives
asked this question in
Idea / Feature Request
Replies: 1 comment
-
We can keep this in mind for v3. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check existing issues
Viem Version
2.23.2
Current Behavior
I debugged multiple hours about why my service was successful on local, but failed in Docker. It failed in Docker, because I had undefined env values, and viem defaulted to
eth.merkle.io
as RPC. Then, themerkle.io
failed with 429.I had no idea why this was happening, and had to search through
viem
source code to find this custom logic.Expected Behavior
User input (undefined RPC url) should be honored. Viem should not try to recover from this and suggest it's own RPC url. Users want to know immediately when they input wrong values, so they can fix their environment.
Steps To Reproduce
No response
Link to Minimal Reproducible Example
No response
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions