Open tcoratger opened 6 days ago
Hi @tcoratger, I would like to contribute to this issue, kindly assign me.
Hey @Samrath49! Thanks for showing interest. We've created an application for you to contribute to Kakarot zkEVM. Go check it out on OnlyDust!
@Samrath49 Assigned
In our codebase, we use the
other
field of transactions to storeisRunOutOfResources
information. This leads to extensive usage ofWithOtherFields<T>
throughout the code after the merge of https://github.com/kkrt-labs/kakarot-rpc/pull/1389, especially when handling conversions between RPC and primitive types, as seen in https://github.com/paradigmxyz/reth/blob/fba837468cac5143b415c9dd4fdc9218d71a926b/crates/primitives/src/alloy_compat.rs#L55-L212.However, this approach is complex and can be optimized for better readability and management.
Proposal
WithOtherFields<T>
, replacing them with justT
where the extra fields aren't needed.ExtendedTransaction = WithOtherFields<Transaction>
(and similar for blocks) to standardize its usage where necessary.