Skip to content

Commit

Permalink
fix(identity): expanding JSON-RPC error codes (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother authored Feb 3, 2025
1 parent 89f780f commit 0185682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub const ETHEREUM_MAINNET: &str = "eip155:1";
/// Error codes that reflect an `execution reverted` and should proceed with Ok() during
/// the identity avatar lookup because of an absence of the ERC-721 contract address or
/// token ID in the ENS avatar record.
const JSON_RPC_OK_ERROR_CODES: [&str; 3] = ["-32000", "-32015", "3"];
const JSON_RPC_OK_ERROR_CODES: [&str; 4] = ["-32000", "-32003", "-32015", "3"];

#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Hash, Clone)]
#[serde(rename_all = "camelCase")]
Expand Down

0 comments on commit 0185682

Please sign in to comment.