Skip to content

Commit

Permalink
Fix sourcify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenzing committed Apr 4, 2024
1 parent bd61cc0 commit b906b89
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions libs/sourcify/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,11 @@ mod tests {
.expect_err("error expected");
assert!(
matches!(
result,
Error::Sourcify(SourcifyError::Custom(
VerifyFromEtherscanError::ContractNotVerified(_)
))
&result,
Error::Sourcify(SourcifyError::NotFound(message))
if message.contains("not verified on Etherscan")
),
"expected: 'SourcifyError::ContractNotVerified', got: {result:?}"
"expected: 'SourcifyError::NotFound with not verified on etherscan message', got: {result:?}"
);
}

Expand Down

0 comments on commit b906b89

Please sign in to comment.