Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Add DECLARE and DEPLOY_ACCOUNT support to rpc_state_reader. #995

Closed
wants to merge 63 commits into from

Conversation

azteca1998
Copy link
Collaborator

@azteca1998 azteca1998 commented Sep 1, 2023

Add DECLARE and DEPLOY_ACCOUNT support to rpc_state_reader

Description

Depends on #967 (well, it contains it rather than depends on).

Add support for the following transaction types to rpc_state_reader:

  • DECLARE (v1)
  • DECLARE (v2)
  • DEPLOY
  • DEPLOY_ACCOUNT

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.

@Oppen Oppen added this pull request to the merge queue Sep 8, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Sep 8, 2023
Copy link
Collaborator

@juanbono juanbono left a comment

Choose a reason for hiding this comment

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

Please add some tests

@@ -138,7 +134,10 @@ pub fn execute_tx(

// Get transaction before giving ownership of the reader
let tx_hash = TransactionHash(stark_felt!(tx_hash));
let tx = match rpc_reader.0.get_transaction(&tx_hash) {
let tx = match dbg!(rpc_reader.0.get_transaction(&tx_hash)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can drop the dbg!.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@juanbono juanbono closed this Oct 31, 2023
@juanbono juanbono deleted the add-declare-transactions-rpcstatereader branch October 31, 2023 13:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RPCStateReader] Add support for executing DeployAccount transactions [RPCStateReader] Add support for executing Declare transactions (both versions)
7 participants