Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit d404e6d

Browse files
committed
chore: suggestions
1 parent 79e8874 commit d404e6d

File tree

1 file changed

+3
-2
lines changed
  • components/chainhook-sdk/src/indexer/stacks

1 file changed

+3
-2
lines changed

components/chainhook-sdk/src/indexer/stacks/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ pub struct NewTransaction {
112112
pub raw_result: String,
113113
pub raw_tx: String,
114114
pub execution_cost: Option<StacksTransactionExecutionCost>,
115-
pub contract_abi: Option<ContractInterface>,
116115
pub contract_interface: Option<ContractInterface>,
116+
/// @deprecated Use `contract_interface` instead
117+
pub contract_abi: Option<ContractInterface>,
117118
}
118119

119120
#[derive(Deserialize, Debug)]
@@ -457,7 +458,7 @@ pub fn standardize_stacks_block(
457458
description,
458459
position: StacksTransactionPosition::anchor_block(tx.tx_index),
459460
proof: None,
460-
contract_abi: tx.contract_interface.clone().or(tx.contract_abi.clone()),
461+
contract_abi: tx.contract_interface.clone().or_else(|| tx.contract_abi.clone()),
461462
},
462463
});
463464
}

0 commit comments

Comments
 (0)