Skip to content

Commit fec81d1

Browse files
author
Clint
authored
fix(sequencer): deprecated endpoint error code (#510)
1 parent 7b23df2 commit fec81d1

File tree

1 file changed

+3
-0
lines changed
  • starknet-providers/src/sequencer

1 file changed

+3
-0
lines changed

starknet-providers/src/sequencer/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ pub enum ErrorCode {
9595
DuplicatedTransaction,
9696
#[serde(rename = "StarknetErrorCode.INVALID_CONTRACT_CLASS")]
9797
InvalidContractClass,
98+
#[serde(rename = "StarknetErrorCode.DEPRECATED_ENDPOINT")]
99+
DeprecatedEndpoint,
98100
}
99101

100102
impl SequencerGatewayProvider {
@@ -727,6 +729,7 @@ impl From<SequencerError> for ProviderError {
727729
ErrorCode::InvalidCompiledClassHash => Some(StarknetError::CompiledClassHashMismatch),
728730
ErrorCode::DuplicatedTransaction => Some(StarknetError::DuplicateTx),
729731
ErrorCode::InvalidContractClass => None,
732+
ErrorCode::DeprecatedEndpoint => None,
730733
};
731734

732735
match matching_code {

0 commit comments

Comments
 (0)