Skip to content

Commit 01abcc8

Browse files
committed
missing txid at struct Transaction
1 parent 7e50b03 commit 01abcc8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/ain-ocean/src/indexer/transaction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pub fn index_transaction(services: &Arc<Services>, ctx: Context) -> Result<()> {
6060

6161
let tx = TransactionMapper {
6262
id: txid,
63+
txid,
6364
order,
6465
hash: ctx.tx.hash.clone(),
6566
block: ctx.block.clone(),

lib/ain-ocean/src/model/transaction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub type TransactionByBlockHashKey = (BlockHash, usize);
1111
#[serde(rename_all = "camelCase")]
1212
pub struct Transaction {
1313
pub id: Txid, // unique id of the transaction, same as the txid
14+
pub txid: Txid,
1415
pub order: usize, // tx order
1516
pub block: BlockContext,
1617
pub hash: String,

0 commit comments

Comments
 (0)