Skip to content

Commit

Permalink
removed multiple imports
Browse files Browse the repository at this point in the history
  • Loading branch information
shivnative committed Oct 4, 2024
1 parent afdfdd2 commit 635fc55
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions native/blockchain/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import (
types "github.com/cometbft/cometbft/rpc/jsonrpc/types"
tmtypes "github.com/cometbft/cometbft/types"
sdk "github.com/cosmos/cosmos-sdk/types"
prov "github.com/cometbft/cometbft/light/provider/http"
provtypes "github.com/cometbft/cometbft/light/provider"
"github.com/cosmos/cosmos-sdk/types/module/testutil"
"github.com/cosmos/cosmos-sdk/x/bank"

Expand Down
1 change: 0 additions & 1 deletion native/blockchian.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
provtypes "github.com/cometbft/cometbft/light/provider"
tmtypes "github.com/cometbft/cometbft/types"
sdktypes "github.com/cosmos/cosmos-sdk/types"
provtypes "github.com/cometbft/cometbft/light/provider"
)

// Blockchain is the expected blockchain interface the indexer needs to store data in the database.
Expand Down
2 changes: 1 addition & 1 deletion native/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (i *Indexer) HandleBlock(ctx context.Context, blk *tmtypes.Block) error {
fmt.Println("Error executing transaction:", err)
return err
}

i.logger.Debug().Any("transaction response", rsp2).Msg("After making trasaction")
for _, tx := range blk.Data.Txs {
if err := i.HandleTx(ctx, int(blk.Header.Height), int(blk.Time.Unix()), tx); err != nil {
i.logger.Err(err).Int64("height", blk.Height).Msg("error handling block")
Expand Down

0 comments on commit 635fc55

Please sign in to comment.