From 667839f8d9a3cc56e4ea3d8e80737e3efaa19fb2 Mon Sep 17 00:00:00 2001 From: clint Date: Sat, 2 Dec 2023 17:18:34 +0800 Subject: [PATCH] Fixed sequencer deprecated error code --- starknet-providers/src/sequencer/mod.rs | 3 +++ 1 file changed, 3 insertions(+) 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 {