Closed dimalinux closed 1 year ago
Patch coverage: 100.00
% and project coverage change: -0.06
:warning:
Comparison is base (
3b4870e
) 60.98% compared to head (8211eff
) 60.92%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
The initial Optimism endpoint that I picked,
https://1rpc.io/op
, has degraded. It now, on a semi-regular basis, just returns an EOF error. (Worse than other endpoints, that give a message about being over the rate limit or a connection-refused error.)This PR picks a different endpoint, from
blockpi
, and also makes the optimism endpoint configurable via anETH_OPTIMISM_ENDPOINT
environment variable. The naming of the variable was picked to match the unit test variables for Sepolia and Mainnet, and this new variable can also be set in the github secrets for CI.Note that this variable name does not match the CLI environment variables that can be used in place of a CLI flag. If we don't end up finding a reliable endpoint, we may want to add full CLI support for setting the endpoint and using a variable name like
SWAPD_OPTIMISM_ENDPOINT
.This PR also adds a fix that is needed due to
prettier
changes in the new 3.0.0 release.