Commit 3c6b9916 authored by Geoff Simmons's avatar Geoff Simmons

Fix a nil derefernce in dataplane getTx().

parent 80c3584d
...@@ -203,11 +203,7 @@ func getBody(resp *http.Response) ([]byte, error) { ...@@ -203,11 +203,7 @@ func getBody(resp *http.Response) ([]byte, error) {
} }
func getTx(body []byte) (tx *models.Transaction, err error) { func getTx(body []byte) (tx *models.Transaction, err error) {
tx = &models.Transaction{ tx = &models.Transaction{}
Version: tx.Version,
ID: tx.ID,
Status: tx.Status,
}
if err = tx.UnmarshalBinary(body); err != nil { if err = tx.UnmarshalBinary(body); err != nil {
err = tx.Validate(fmts) 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