Skip to content

Commit

Permalink
fixed proof
Browse files Browse the repository at this point in the history
  • Loading branch information
scottburch committed Jan 26, 2021
1 parent 1229abc commit f789abf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/crud/client/rest/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ func AccountTxsHandler(cliCtx context.CLIContext) http.HandlerFunc {
trustNode = false
}
cliCtx = cliCtx.WithTrustNode(trustNode)
cliCtx = cliCtx.WithChainID(r.FormValue("chainId"))
if trustNode == false && cliCtx.Verifier == nil {
verifier, err := context.CreateVerifier(cliCtx, context.DefaultVerifierCacheSize)
if err != nil {
rest.WriteErrorResponse(w, http.StatusBadRequest, err.Error())
}
cliCtx = cliCtx.WithVerifier(verifier)
}

vars := mux.Vars(r)
var response = make([]sdk.TxResponse, 0)
Expand Down

0 comments on commit f789abf

Please sign in to comment.