mirror of
https://github.com/logos-co/nomos-node.git
synced 2026-08-30 19:11:09 +00:00
refactor(txhash): Simplify Mantle Transaction (2/2) (#2670)
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user