Skip to content

Commit

Permalink
Bank
Browse files Browse the repository at this point in the history
  • Loading branch information
mattverse committed Sep 28, 2024
1 parent e7668ca commit fb0b519
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions x/bank/keeper/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,19 @@ func (k BaseSendKeeper) InputOutputCoins(ctx context.Context, input types.Input,
return err
}

for _, out := range outputs {
outAddress, err := k.ak.AddressCodec().StringToBytes(out.Address)
if err != nil {
return err
}

if err := k.BlockBeforeSend(ctx, inAddress, outAddress, out.Coins); err != nil {
return err
}

k.TrackBeforeSend(ctx, inAddress, outAddress, out.Coins)
}

err = k.subUnlockedCoins(ctx, inAddress, input.Coins)
if err != nil {
return err
Expand Down

0 comments on commit fb0b519

Please sign in to comment.