-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(starknet_provider): add missing JSON RPC error code 41 #481
fix(starknet_provider): add missing JSON RPC error code 41 #481
Conversation
…ON_EXECUTION_ERROR)
To view this pull requests documentation preview, visit the following URL: docs.page/focustree/starknet.dart~481 Documentation is deployed and generated using docs.page. |
WalkthroughThe changes introduce a new enumeration value, Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/starknet_provider/lib/src/model/json_rpc_api_error.dart (1)
51-52
: The addition of TRANSACTION_EXECUTION_ERROR enum value is appropriate.This change correctly implements the missing JSON RPC error code 41 for transaction execution errors as specified in the PR objectives. The placement after code 40 (CONTRACT_ERROR) and before code 50 (INVALID_CONTRACT_CLASS) maintains the numerical ordering of the enum values.
Consider adding a source comment similar to other enum values for consistency and documentation purposes. For example:
@JsonValue(41) - TRANSACTION_EXECUTION_ERROR, + TRANSACTION_EXECUTION_ERROR, // from JSON-RPC API spec
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
packages/starknet_provider/lib/src/model/json_rpc_api_error.dart
(1 hunks)packages/starknet_provider/lib/src/model/json_rpc_api_error.g.dart
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: test-integration
- GitHub Check: lint
- GitHub Check: analyze
🔇 Additional comments (1)
packages/starknet_provider/lib/src/model/json_rpc_api_error.g.dart (1)
39-39
: Addition of TRANSACTION_EXECUTION_ERROR code looks good.The implementation correctly adds the new error code to the generated map with the value 41, maintaining the numerical ordering of the error codes in the map.
JSON RPC spec
Summary by CodeRabbit