Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
d67d6a275b
commit
a98ac47c84
@ -70,7 +70,13 @@ func ensureMsgAuthZ(msgs []sdk.Msg, groupPolicyAcc sdk.AccAddress, cdc codec.Cod
|
||||
if err != nil {
|
||||
return errorsmod.Wrapf(sdkerrors.ErrUnauthorized, "msg does not have group policy authorization; error retrieving group policy address")
|
||||
}
|
||||
return errorsmod.Wrapf(sdkerrors.ErrUnauthorized, "msg does not have group policy authorization; expected %s, got %s", groupPolicyAddr, acct)
|
||||
|
||||
acctStr, _ := addressCodec.BytesToString(acct)
|
||||
if acctStr == "" {
|
||||
acctStr = "unmarshalable address"
|
||||
}
|
||||
|
||||
return errorsmod.Wrapf(sdkerrors.ErrUnauthorized, "msg does not have group policy authorization; expected %s, got %s", groupPolicyAddr, acctStr)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user