diff --git a/starknet-providers/src/sequencer/mod.rs b/starknet-providers/src/sequencer/mod.rs index 9ab81acc..d6dab278 100644 --- a/starknet-providers/src/sequencer/mod.rs +++ b/starknet-providers/src/sequencer/mod.rs @@ -95,6 +95,8 @@ pub enum ErrorCode { DuplicatedTransaction, #[serde(rename = "StarknetErrorCode.INVALID_CONTRACT_CLASS")] InvalidContractClass, + #[serde(rename = "StarknetErrorCode.DEPRECATED_ENDPOINT")] + DeprecatedEndpoint, } impl SequencerGatewayProvider { @@ -727,6 +729,7 @@ impl From for ProviderError { ErrorCode::InvalidCompiledClassHash => Some(StarknetError::CompiledClassHashMismatch), ErrorCode::DuplicatedTransaction => Some(StarknetError::DuplicateTx), ErrorCode::InvalidContractClass => None, + ErrorCode::DeprecatedEndpoint => None, }; match matching_code {