Fix tests
This commit is contained in:
parent
903348a76c
commit
d78db91944
@ -37,7 +37,7 @@ func SignTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.Ha
|
||||
|
||||
// validate tx
|
||||
// discard error if it's CodeUnauthorized as the tx comes with no signatures
|
||||
if err := m.Tx.ValidateBasic(); err != nil && err.Code() != sdk.CodeUnauthorized {
|
||||
if err := m.Tx.ValidateBasic(); err != nil && err.Code() != sdk.CodeNoSignatures {
|
||||
utils.WriteErrorResponse(w, http.StatusBadRequest, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user