Skip to content

Commit f7405ce

Browse files
committed
check for all
1 parent e250f69 commit f7405ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/block_address.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ func (bad BlockAddressesDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula
3939
}
4040
}
4141
}
42-
admin := bad.getParams(ctx).CronosAdmin
43-
for _, msg := range tx.GetMsgs() {
44-
if blocklistMsg, ok := msg.(*types.MsgStoreBlockList); ok {
45-
if admin != blocklistMsg.From {
46-
return ctx, errors.Wrap(sdkerrors.ErrUnauthorized, "msg sender is not authorized")
47-
}
42+
}
43+
admin := bad.getParams(ctx).CronosAdmin
44+
for _, msg := range tx.GetMsgs() {
45+
if blocklistMsg, ok := msg.(*types.MsgStoreBlockList); ok {
46+
if admin != blocklistMsg.From {
47+
return ctx, errors.Wrap(sdkerrors.ErrUnauthorized, "msg sender is not authorized")
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)