Skip to content

Commit

Permalink
fix golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RustNinja committed Dec 4, 2023
1 parent 320b58f commit 0795d66
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/prepare/tx_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
// FilterChangeValSetMsgs slpit list txs to 2 set : filteredTxs, changeValSetTxs
func FilterChangeValSetMsgs(ctx sdk.Context, cdc codec.BinaryCodec, decoder sdk.TxDecoder, txs [][]byte) [][]byte {
var filteredTxs [][]byte
var changeValSetTxs [][]byte
for _, txBytes := range txs {
// Decode tx so we can read msgs.
tx, err := decoder(txBytes)
Expand All @@ -33,7 +32,6 @@ func FilterChangeValSetMsgs(ctx sdk.Context, cdc codec.BinaryCodec, decoder sdk.
// If tx contains disallowed msg, skip it.
if containsChangeValsetMsg {
ctx.Logger().Info("Found change valset msg")
changeValSetTxs = append(changeValSetTxs, txBytes)
continue // continue to next tx.
}

Expand Down

0 comments on commit 0795d66

Please sign in to comment.