@tchain/tcabci-read-js-client 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.js +1 -1
- package/package.json +1 -1
- package/transaction.js +3 -1
- package/websocketOptions.js +1 -1
package/client.js
CHANGED
package/package.json
CHANGED
package/transaction.js
CHANGED
|
@@ -227,6 +227,7 @@ export class Transaction {
|
|
|
227
227
|
|
|
228
228
|
if (parsed.order) tx._order = parsed.order
|
|
229
229
|
tx._id = parsed.id
|
|
230
|
+
tx._typ = parsed.typ
|
|
230
231
|
if (parsed.identifier) tx._identifier = parsed.identifier
|
|
231
232
|
tx._height = parsed.height
|
|
232
233
|
tx._version = parsed.version
|
|
@@ -252,6 +253,7 @@ export class Transaction {
|
|
|
252
253
|
|
|
253
254
|
if (obj.order) tx._order = obj.order
|
|
254
255
|
tx._id = obj.id
|
|
256
|
+
tx._typ = obj.typ
|
|
255
257
|
if (obj.identifier) tx._identifier = obj.identifier
|
|
256
258
|
tx._height = obj.height
|
|
257
259
|
tx._version = obj.version
|
|
@@ -276,7 +278,7 @@ export class Transaction {
|
|
|
276
278
|
* @throws Error
|
|
277
279
|
*/
|
|
278
280
|
ToJSON() {
|
|
279
|
-
this.
|
|
281
|
+
this.Validate()
|
|
280
282
|
|
|
281
283
|
return JSON.stringify({
|
|
282
284
|
id: this._id,
|
package/websocketOptions.js
CHANGED