Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/rs-dpp/src/errors/consensus/codes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl ErrorWithCode for BasicError {
Self::InvalidIdentifierError { .. } => 10102,
Self::ValueError(_) => 10103,

// DataContract Errors: 10200-10399
// DataContract Errors: 10200-10349
Copy link
Collaborator

@shumkov shumkov Feb 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here not the actual codes but bounds which is make sense in terms of information for developer

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what change you're requesting. The next category of errors (Groups) starts at 10350, so 10349 is the limit for Data Contract errors. This follows the pattern of the other comments.

Start of next error type:

            // Group Errors: 10350-10399
            Self::GroupPositionDoesNotExistError(_) => 10350,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self::DataContractMaxDepthExceedError { .. } => 10200,
Self::DuplicateIndexError { .. } => 10201,
Self::IncompatibleRe2PatternError { .. } => 10202,
Expand Down
Loading