Skip to content

Commit

Permalink
fix: Incorrect exposing of log indexes (#896)
Browse files Browse the repository at this point in the history
## What ❔

Make log indexes in transaction exposed correctly

## Why ❔

To behave correctly

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
- [x] Spellcheck has been run via `zk spellcheck`.
  • Loading branch information
Artemka374 authored Jan 18, 2024
1 parent a78d03c commit 12974fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/dal/src/models/storage_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl From<StorageWeb3Log> for Log {
transaction_hash: Some(H256::from_slice(&log.tx_hash)),
transaction_index: Some(Index::from(log.tx_index_in_block as u32)),
log_index: Some(U256::from(log.event_index_in_block as u32)),
transaction_log_index: Some(U256::from(log.event_index_in_block as u32)),
transaction_log_index: Some(U256::from(log.event_index_in_tx as u32)),
log_type: None,
removed: Some(false),
}
Expand Down

0 comments on commit 12974fc

Please sign in to comment.