feat: add eip4844 fields to rpc transaction #8906
Annotations
1 error
borrow of moved value: `tx`:
crates/rpc/rpc-types-compat/src/transaction/mod.rs#L131
error[E0382]: borrow of moved value: `tx`
--> crates/rpc/rpc-types-compat/src/transaction/mod.rs:131:31
|
34 | tx: TransactionSignedEcRecovered,
| -- move occurs because `tx` has type `reth_primitives::TransactionSignedEcRecovered`, which does not implement the `Copy` trait
...
41 | let mut signed_tx = tx.into_signed();
| ------------- `tx` moved due to this method call
...
131 | max_fee_per_blob_gas: tx.transaction.max_fee_per_blob_gas().map(U128::from),
| ^^^^^^^^^^^^^^ value borrowed here after move
|
note: `reth_primitives::TransactionSignedEcRecovered::into_signed` takes ownership of the receiver `self`, which moves `tx`
--> /home/runner/work/reth/reth/crates/primitives/src/transaction/mod.rs:1106:24
|
1106 | pub fn into_signed(self) -> TransactionSigned {
| ^^^^
= note: borrow occurs due to deref coercion to `reth_primitives::TransactionSigned`
note: deref defined here
--> /home/runner/work/reth/reth/crates/primitives/src/transaction/mod.rs:1087:52
|
1087 | #[derive(Debug, Clone, PartialEq, Eq, Hash, AsRef, Deref, Default)]
| ^^^^^
= note: this error originates in the derive macro `Deref` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you can `clone` the value and consume it, but this might not be your desired behavior
|
41 | let mut signed_tx = tx.clone().into_signed();
| ++++++++
|