Skip to content

Commit

Permalink
check for all
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 8, 2024
1 parent e250f69 commit f7405ce
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")

Check warning on line 47 in app/block_address.go

View check run for this annotation

Codecov / codecov/patch

app/block_address.go#L43-L47

Added lines #L43 - L47 were not covered by tests
}
}
}
Expand Down

0 comments on commit f7405ce

Please sign in to comment.