Closed antazoey closed 2 weeks ago
I put in a very non-URI value in my config to demo something and it blew up not how i expected. This PR fixes it.
Noticed a comment was wrong, that was where to fix. Basically make it error if given a value that is neither HTTP, WS, or IPC.
node: ethereum: mainnet: uri: asdfasdf
ape console --network ethereum:mainnet:node
Before, it would recurse until it failed. Now, you get:
ERROR: (ConfigError) Invalid URI (not HTTP, WS, or IPC): asdfasdf
What I did
I put in a very non-URI value in my config to demo something and it blew up not how i expected. This PR fixes it.
How I did it
Noticed a comment was wrong, that was where to fix. Basically make it error if given a value that is neither HTTP, WS, or IPC.
How to verify it
Before, it would recurse until it failed. Now, you get:
Checklist