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

[RPCStateReader] Add support for executing Declare transactions (both versions) #992

Closed
@juanbono

Description

@juanbono

The main issues are:

  • For Declare (v1) we need to fetch the contract class. This should be possible to do using the RPC or the feeder gateway.
  • For DeclareV2. We need to find a way of bypassing the creation of a new DeclareV2 struct using a Sierra contract class since IIRC there is no RPC or feeder gateway endpoint for getting it. What we really need in the end is only the casm. So it should be possible to create a DeclareV2 without a Sierra class by adding another constructor and making some validation optional (depending on if there is a sierra contract class or not)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions