|
pub struct TransactionVersion(pub StarkFelt); |
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.
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
Feltto 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 haveFeltbeing its default representation.It should be an
u8, and aFeltcan easily be constructed from anu8when needed.