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.

Handle transaction versions with the QUERY_VERSION_BASE set #799

@kkovaacs

Description

@kkovaacs

cairo-lang has a feature called "query version", which is basically setting a bit flag in the transaction version field that means that the transaction must not be included in the chain.

The reasoning is that otherwise clients could not submit valid transactions (with a valid signature) for simulation/estimation that they don't (yet) want to be included on chain.

The flag bit is 2**128 (https://github.com/starkware-libs/cairo-lang/blob/c98fc0b50529185b7018208cb3460191eeb53e0d/src/starkware/starknet/definitions/constants.py#L63). If set, the sequencer rejects the transaction but otherwise it behaves in exactly the same way as if the bit was not set.

With current starknet-in-rust setting the flag results in validation errors (Unsupported version "340282366920938463463374607431768211458").

Please add support for this flag.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions