refactor(txhash): Simplify Mantle Transaction (2/2) (#2670)

This commit is contained in:
thomaslavaur
2026-05-06 10:07:05 +02:00
committed by GitHub
parent 7de7acf510
commit 8b3cf73ff7
35 changed files with 579 additions and 752 deletions
@@ -1,4 +1,4 @@
use lb_core::mantle::{MantleTx, Op, OpProof, SignedMantleTx, TxHash, gas::GasPrice};
use lb_core::mantle::{MantleTx, Op, OpProof, SignedMantleTx, TxHash};
use serde::Serialize;
#[derive(Serialize)]
@@ -6,9 +6,8 @@ use serde::Serialize;
pub struct ApiTransactionSerializer {
#[serde(getter = "<MantleTx as lb_core::mantle::Transaction>::hash")]
hash: TxHash,
#[serde(getter = "MantleTx::ops")]
ops: Vec<Op>,
execution_gas_price: GasPrice,
storage_gas_price: GasPrice,
}
#[derive(Serialize)]