Skip to content

Commit

Permalink
fix(sequencer): deprecated endpoint error code (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clint authored Dec 5, 2023
1 parent 7b23df2 commit fec81d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions starknet-providers/src/sequencer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ pub enum ErrorCode {
DuplicatedTransaction,
#[serde(rename = "StarknetErrorCode.INVALID_CONTRACT_CLASS")]
InvalidContractClass,
#[serde(rename = "StarknetErrorCode.DEPRECATED_ENDPOINT")]
DeprecatedEndpoint,
}

impl SequencerGatewayProvider {
Expand Down Expand Up @@ -727,6 +729,7 @@ impl From<SequencerError> for ProviderError {
ErrorCode::InvalidCompiledClassHash => Some(StarknetError::CompiledClassHashMismatch),
ErrorCode::DuplicatedTransaction => Some(StarknetError::DuplicateTx),
ErrorCode::InvalidContractClass => None,
ErrorCode::DeprecatedEndpoint => None,
};

match matching_code {
Expand Down

0 comments on commit fec81d1

Please sign in to comment.