Skip to content
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

New rpcdata + RPCv08 errors #649

Merged
merged 4 commits into from
Jan 6, 2025
Merged

New rpcdata + RPCv08 errors #649

merged 4 commits into from
Jan 6, 2025

Conversation

thiagodeev
Copy link
Collaborator

This PR aims to implement some RPC v0.8.0 updates to starknet.go. The ones addressed by this PR are:

Components
CONTRACT_EXECUTION_ERROR

Errors
CONTRACT_ERROR
TRANSACTION_EXECUTION_ERROR

Note: As the RPC v0.8.0 has not yet been released, we can't fully test these changes as the nodes haven't implemented them yet. They will be updated before merging into main

Also, it improves the RPCError type. Now we have a way of returning the error message contained in the Data error field. We can also access it just by checking if it's nil or not.

@thiagodeev thiagodeev force-pushed the thiagodeev/new-rpcdata branch 2 times, most recently from f67c73f to f9d13d8 Compare December 20, 2024 02:23
@thiagodeev thiagodeev force-pushed the thiagodeev/new-rpcdata branch from 58ff990 to 2e444c3 Compare December 23, 2024 14:56
@thiagodeev thiagodeev marked this pull request as ready for review December 23, 2024 15:21
…and updating JSON marshaling/unmarshaling methods. Refactor ContractExecutionError to use ContractExecutionErrorInner for improved clarity.
@rianhughes rianhughes merged commit 9591073 into v0.8.0 Jan 6, 2025
6 checks passed
@rianhughes rianhughes deleted the thiagodeev/new-rpcdata branch January 6, 2025 10:15
thiagodeev added a commit that referenced this pull request Jan 13, 2025
commit 9199306
Author: thiagodeev <[email protected]>
Date:   Mon Jan 6 08:26:54 2025 -0300

    Fixes failing test

commit a6014d4
Merge: 9591073 1bd1947
Author: Thiago Ribeiro <[email protected]>
Date:   Mon Jan 6 08:18:12 2025 -0300

    Merge branch 'main' into v0.8.0

commit 9591073
Author: Thiago Ribeiro <[email protected]>
Date:   Mon Jan 6 07:15:42 2025 -0300

    New rpcdata + RPCv08 errors (#649)

    Update RPC rrror structure to handle RPv0.8.0 errors

commit 1bd1947
Author: Thiago Ribeiro <[email protected]>
Date:   Wed Dec 18 13:00:30 2024 -0300

    Creates a description for the multi-call feature (#648)

    * description of the multi call feature

    * Improves description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants