Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter committed Nov 3, 2023
1 parent 526047a commit 78f3d86
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rust/chains/hyperlane-cosmos/src/providers/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ impl CosmosWasmIndexer {

parser(&event.attributes)
.map_err(|err| {
tracing::warn!(?err, tx_hash=?tx.hash, log_idx, ?event, "Failed to parse event attributes");
// This can happen if we attempt to parse an event that just happens
// to have the same name but a different structure.
tracing::trace!(?err, tx_hash=?tx.hash, log_idx, ?event, "Failed to parse event attributes");
})
.ok()
.flatten()
Expand All @@ -138,10 +140,11 @@ impl CosmosWasmIndexer {
Some((parsed_event.event, LogMeta {
address: self.contract_address,
block_number: tx.height.value(),
// FIXME: block_hash is not available in tx_search
// FIXME: block_hash is not available in tx_search.
// This isn't strictly required atm.
block_hash: H256::zero(),
transaction_id: h256_to_h512(H256::from_slice(tx.hash.as_bytes())),
transaction_index: tx.index as u64,
transaction_index: tx.index.into(),
log_index: U256::from(log_idx),
}))
})
Expand Down

0 comments on commit 78f3d86

Please sign in to comment.