diff --git a/x/bank/keeper/keeper.go b/x/bank/keeper/keeper.go index f730f5f44..2610600fb 100644 --- a/x/bank/keeper/keeper.go +++ b/x/bank/keeper/keeper.go @@ -403,6 +403,11 @@ func (k BaseKeeper) SendCoinsFromModuleToModule( return k.addCoins(ctx, recipientAcc.GetAddress(), amt) } + if amt.IsZero() { + return nil + } + + k.Logger(ctx).Debug("Sending coins from module to module", "sender", senderModule, "sender_address", senderAddr.String(), "recipient", recipientModule, "recipientAddr", recipientAcc.GetAddress().String(), "amount", amt.String()) return k.SendCoins(ctx, senderAddr, recipientAcc.GetAddress(), amt) }