Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

logIndex should be set to the index in the block rather than tx #334

Closed
yihuang opened this issue Jul 21, 2021 · 0 comments · Fixed by #354
Closed

logIndex should be set to the index in the block rather than tx #334

yihuang opened this issue Jul 21, 2021 · 0 comments · Fixed by #354
Assignees

Comments

@yihuang
Copy link
Contributor

yihuang commented Jul 21, 2021

System info: ethermint main branch

Steps to reproduce:

https://github.com/tharsis/ethermint/blob/main/x/evm/keeper/statedb.go#L595

Expected behavior: log.Index should be set to the index of log in the whole block

Actual behavior: log.Index is set to the index of log in the tx

Additional info:
go-ethereum: https://github.com/ethereum/go-ethereum/blob/master/core/state/statedb.go#L190

@yihuang yihuang changed the title logIndex should be log index in block rather than in tx logIndex should be set to the index in the block rather than tx Jul 21, 2021
@yihuang yihuang self-assigned this Jul 21, 2021
yihuang referenced this issue in yihuang/ethermint Jul 26, 2021
fedekunze pushed a commit that referenced this issue Jul 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant