Commit 0cbe8be0 authored by inso's avatar inso
Browse files

Fix version of compact transaction

parent 95baeb3f
......@@ -189,7 +189,7 @@ module.exports = new function() {
this.getCompactTransaction = function (json) {
let issuers = (json.issuers || json.signatories);
let raw = ["TX", 1, issuers.length, json.inputs.length, json.unlocks.length, json.outputs.length, json.comment ? 1 : 0, json.locktime || 0].join(':') + '\n';
let raw = ["TX", json.version, issuers.length, json.inputs.length, json.unlocks.length, json.outputs.length, json.comment ? 1 : 0, json.locktime || 0].join(':') + '\n';
(issuers || []).forEach(function (issuer) {
raw += issuer + '\n';
});
......
Supports Markdown
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