Skip to content

Commit

Permalink
emit error instead of panic
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed Feb 6, 2023
1 parent 177af73 commit 6f323e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/bankplus/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (keeper BaseKeeper) IsInactiveAddr(address sdk.AccAddress) bool {

func (keeper BaseKeeper) InputOutputCoins(ctx sdk.Context, inputs []types.Input, outputs []types.Output) error {
if keeper.deactMultiSend {
panic("you can't use MultiSend")
return sdkerrors.ErrNotSupported.Wrap("MultiSend was deactivated")
}

for _, out := range outputs {
Expand Down

0 comments on commit 6f323e6

Please sign in to comment.