Commit 97f90b1e authored by Geoff Simmons's avatar Geoff Simmons

Fix a nil derefernce in dataplane getTx().

parent 02ac78bc
......@@ -203,11 +203,7 @@ func getBody(resp *http.Response) ([]byte, error) {
}
func getTx(body []byte) (tx *models.Transaction, err error) {
tx = &models.Transaction{
Version: tx.Version,
ID: tx.ID,
Status: tx.Status,
}
tx = &models.Transaction{}
if err = tx.UnmarshalBinary(body); err != nil {
err = tx.Validate(fmts)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment