Skip to content

Commit

Permalink
fix: use safeAdd instead of append
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed May 3, 2023
1 parent 43a06e3 commit d3d3bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/apps/transfer/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (k Keeper) SetTotalEscrowForDenom(ctx sdk.Context, denom string, amount mat
func (k Keeper) GetAllTotalEscrowed(ctx sdk.Context) sdk.Coins {
var escrows sdk.Coins
k.IterateTokensInEscrow(ctx, []byte(types.KeyTotalEscrowPrefix), func(denomEscrow sdk.Coin) bool {
escrows = append(escrows, denomEscrow)
escrows.Add(denomEscrow)
return false
})

Expand Down

0 comments on commit d3d3bda

Please sign in to comment.