You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transaction version is not part of the starknet state. It is occasionally used as an Felt to compute some hash, but most of the time it is manipulated by the sequencer in a non-provable context, so there is no reason for it to have Felt being its default representation.
It should be an u8, and a Felt can easily be constructed from an u8 when needed.
The text was updated successfully, but these errors were encountered:
starknet-api/src/transaction.rs
Line 489 in a50e621
The transaction version is not part of the starknet state. It is occasionally used as an
Felt
to compute some hash, but most of the time it is manipulated by the sequencer in a non-provable context, so there is no reason for it to haveFelt
being its default representation.It should be an
u8
, and aFelt
can easily be constructed from anu8
when needed.The text was updated successfully, but these errors were encountered: