Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Sep 27, 2024
1 parent 91a1674 commit 5957c08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#2039](https://github.com/NibiruChain/nibiru/pull/2039) - refactor(rpc-backend): remove unnecessary interface code
- [#2044](https://github.com/NibiruChain/nibiru/pull/2044) - feat(evm): evm tx indexer service implemented
- [#2045](https://github.com/NibiruChain/nibiru/pull/2045) - test(evm): backend tests with test network and real txs
- [#2053](https://github.com/NibiruChain/nibiru/pull/2053) - refactor(evm): converted untyped event to typed and cleaned up

#### Dapp modules: perp, spot, oracle, etc

Expand Down
10 changes: 1 addition & 9 deletions eth/rpc/rpcapi/filter_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (

"cosmossdk.io/errors"
abci "github.com/cometbft/cometbft/abci/types"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/ethereum/go-ethereum/common"
gethcore "github.com/ethereum/go-ethereum/core/types"

Expand Down Expand Up @@ -122,17 +120,11 @@ func ParseBloomFromEvents(events []abci.Event) (bloom gethcore.Bloom, err error)
if event.Type != bloomEventType {
continue
}
typedProtoEvent, err := sdk.ParseTypedEvent(event)
bloomTypedEvent, err := evm.EventBlockBloomFromABCIEvent(event)
if err != nil {
return bloom, errors.Wrapf(
err, "failed to parse event of type %s", bloomEventType)
}
bloomTypedEvent, ok := (typedProtoEvent).(*evm.EventBlockBloom)
if !ok {
return bloom, errors.Wrapf(
err, "failed to parse event of type %s", bloomEventType)
}

return eth.BloomFromHex(bloomTypedEvent.Bloom)
}
return bloom, err
Expand Down

0 comments on commit 5957c08

Please sign in to comment.