updates for new tmsp protobuf

This commit is contained in:
Ethan Buchman
2016-05-14 12:33:27 -04:00
parent b2e612fb79
commit 7383ead106
3 changed files with 24 additions and 19 deletions

View File

@@ -28,10 +28,11 @@ func BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, error) {
return nil, fmt.Errorf("Error broadcasting transaction: %v", err)
}
res := <-resCh
r := res.GetCheckTx()
return &ctypes.ResultBroadcastTx{
Code: res.Code,
Data: res.Data,
Log: res.Log,
Code: r.Code,
Data: r.Data,
Log: r.Log,
}, nil
}