Skip to content

Commit ad613a8

Browse files
committed
Add transaction receipt to trigger data debug output
1 parent 0e192f8 commit ad613a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chain/ethereum/src/trigger.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl MappingTriggerTrait for MappingTrigger {
7878
}
7979
}
8080

81-
// Logging the block is too verbose, so this strips the block from the trigger for Debug.
81+
// Logging the block is too verbose, so this strips the block and calls from the trigger for Debug.
8282
impl std::fmt::Debug for MappingTrigger {
8383
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
8484
#[derive(Debug)]
@@ -87,6 +87,7 @@ impl std::fmt::Debug for MappingTrigger {
8787
_transaction: Arc<Transaction>,
8888
_log: Arc<Log>,
8989
_params: Vec<LogParam>,
90+
_receipt: Option<Arc<TransactionReceipt>>,
9091
},
9192
Call {
9293
_transaction: Arc<Transaction>,
@@ -103,12 +104,13 @@ impl std::fmt::Debug for MappingTrigger {
103104
transaction,
104105
log,
105106
params,
106-
receipt: _,
107+
receipt,
107108
calls: _,
108109
} => MappingTriggerWithoutBlock::Log {
109110
_transaction: transaction.cheap_clone(),
110111
_log: log.cheap_clone(),
111112
_params: params.clone(),
113+
_receipt: receipt.clone(),
112114
},
113115
MappingTrigger::Call {
114116
block: _,

0 commit comments

Comments
 (0)