Skip to content

Conversation

@Galoretka
Copy link
Contributor

The previous iteration returned the first error in the etherscan configs, even if a valid config for the requested chain existed later. This was inconsistent with the function’s doc (“Returns the first config that matches the chain”) and caused spurious failures when unrelated entries were misconfigured.
The new logic returns a matching Ok config if present; otherwise, it prefers UnknownChain errors for the requested chain, then falls back to the first error, else None. Added tests to enforce the intended behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant