Skip to content

Commit

Permalink
don't check balances for no native accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
slandymani committed Apr 2, 2024
1 parent 622b001 commit c6eef43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/bank/handle_block.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package bank

import (
app "github.com/ODIN-PROTOCOL/odin-core/app"
tmctypes "github.com/cometbft/cometbft/rpc/core/types"
sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
Expand Down Expand Up @@ -35,6 +36,9 @@ func (m *Module) HandleBlock(
}

for addr, _ := range addrMap {
if len(addr) < 4 || addr[:4] != app.Bech32MainPrefix {
continue
}
addresses = append(addresses, addr)
}

Expand Down

0 comments on commit c6eef43

Please sign in to comment.