We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3017b70 commit ccd276eCopy full SHA for ccd276e
chain/ethereum/src/trigger.rs
@@ -572,10 +572,13 @@ impl<'a> EthereumEventData<'a> {
572
}
573
574
pub fn transaction_log_index(&self) -> &U256 {
575
- self.log
576
- .transaction_log_index
577
- .as_ref()
578
- .unwrap_or(&U256_DEFAULT)
+ // We purposely use the `log_index` here. Geth does not support
+ // `transaction_log_index`, and subgraphs that use it only care that
+ // it identifies the log, the specific value is not important. Still
+ // this will change the output of subgraphs that use this field.
579
+ //
580
+ // This was initially changed in commit b95c6953
581
+ self.log.log_index.as_ref().unwrap_or(&U256_DEFAULT)
582
583
584
pub fn log_type(&self) -> &Option<String> {
0 commit comments