Skip to content

Commit

Permalink
Revert "check for all"
Browse files Browse the repository at this point in the history
This reverts commit f7405ce.
  • Loading branch information
mmsqe committed Oct 8, 2024
1 parent f7405ce commit 8f36580
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/block_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ func (bad BlockAddressesDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula
}
}
}
}
admin := bad.getParams(ctx).CronosAdmin
for _, msg := range tx.GetMsgs() {
if blocklistMsg, ok := msg.(*types.MsgStoreBlockList); ok {
if admin != blocklistMsg.From {
return ctx, errors.Wrap(sdkerrors.ErrUnauthorized, "msg sender is not authorized")
admin := bad.getParams(ctx).CronosAdmin
for _, msg := range tx.GetMsgs() {
if blocklistMsg, ok := msg.(*types.MsgStoreBlockList); ok {
if admin != blocklistMsg.From {
return ctx, errors.Wrap(sdkerrors.ErrUnauthorized, "msg sender is not authorized")
}
}
}
}
Expand Down

0 comments on commit 8f36580

Please sign in to comment.