Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Fix] getLogs endpoint should check whether or not to include cosmos Txs based on namespace #1988

Merged
merged 9 commits into from
Dec 12, 2024
3 changes: 0 additions & 3 deletions evmrpc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package evmrpc
import (
"context"
"crypto/ecdsa"
"crypto/sha256"
"encoding/hex"
"fmt"
"math/big"
Expand Down Expand Up @@ -216,7 +215,6 @@ func getEvmTxHashesFromBlock(block *coretypes.ResultBlock, txConfig client.TxCon
continue
}
if len(sdkTx.GetMsgs()) == 0 {
txHashes = append(txHashes, sha256.Sum256(tx))
continue
}
if evmTx, ok := sdkTx.GetMsgs()[0].(*types.MsgEVMTransaction); ok {
Expand All @@ -226,7 +224,6 @@ func getEvmTxHashesFromBlock(block *coretypes.ResultBlock, txConfig client.TxCon
ethtx, _ := evmTx.AsTransaction()
txHashes = append(txHashes, ethtx.Hash())
}
txHashes = append(txHashes, sha256.Sum256(tx))
}
return txHashes
}
Loading