Skip to content

Commit

Permalink
change UNEXPECTED_ERROR data to string
Browse files Browse the repository at this point in the history
  • Loading branch information
sistemd authored and Mirko-von-Leipzig committed Feb 2, 2024
1 parent fe1ea50 commit 829744f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- `starknet_getEvents` incorrectly evaluates empty sub-lists in key filters for pending events.
- For `UNEXPECTED_ERROR`, change the `data` field into a `string` to comply with the spec.

## [0.10.3] - 2024-01-04

Expand Down
4 changes: 1 addition & 3 deletions crates/rpc/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ impl ApplicationError {
"limit": limit,
"requested": requested,
})),
ApplicationError::UnexpectedError { data } => Some(json!({
"error": data,
})),
ApplicationError::UnexpectedError { data } => Some(json!(data)),
ApplicationError::ProofLimitExceeded { limit, requested } => Some(json!({
"limit": limit,
"requested": requested,
Expand Down

0 comments on commit 829744f

Please sign in to comment.