-
Notifications
You must be signed in to change notification settings - Fork 104
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
Bug: There are two bugs in the RPC error handling. #509
Comments
Sequencer gateway error handling implementation bug: [2023-12-02T07:39:04Z TRACE starknet_providers::sequencer] Response from sequencer API: {"code": "StarknetErrorCode.DEPRECATED_ENDPOINT", "message": "Endpoint is deprecated from version 0.12.3."}
thread 'main' panicked at examples/mint_tokens.rs:65:10:
called `Result::unwrap()` on an `Err` value: Provider(Other(Serde(Error("data did not match any variant of untagged enum RawFieldElementResponse", line: 0, column: 0))))
|
For the original issue reported: you're using a JSON-RPC v0.4.x endpoint, which reports contract errors under the code For the 2nd issue, it's due to Starkware upgrading the Goerli testnet to v0.12.3 and deprecating most endpoints. At this point, using the sequencer gateway is almost pointless. The implementation of |
For the original issue, check out the support for error data introduced in #513. |
The text was updated successfully, but these errors were encountered: