Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix(etherscan): support null result #2249

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Mar 10, 2023

Motivation

fix possible result:null error response, which blockscout apparently returns
ref foundry-rs/foundry#4406

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

Copy link
Collaborator

@prestwich prestwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gakonst gakonst merged commit 862d923 into gakonst:master Mar 13, 2023
@@ -29,6 +29,8 @@ pub enum EtherscanError {
IO(#[from] std::io::Error),
#[error("Local networks (e.g. anvil, ganache, geth --dev) cannot be indexed by etherscan")]
LocalNetworksNotSupported,
#[error("Received error response: status={status},message={message}, result={result:?}")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should there be a space after status? Feels more consistent.

    #[error("Received error response: status={status}, message={message}, result={result:?}")]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants