This commit is contained in:
Christopher Jeffrey 2016-04-19 11:54:46 -07:00
parent ed6b1e9072
commit 0cfbaf91b5
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 4 additions and 4 deletions

View File

@ -168,7 +168,7 @@ Coin.parseJSON = function parseJSON(json) {
version: json.version,
height: json.height,
value: utils.satoshi(json.value),
script: bcoin.script.parseRaw(json.script, 'hex')),
script: bcoin.script.parseRaw(json.script, 'hex'),
coinbase: json.coinbase,
hash: json.hash ? utils.revHex(json.hash) : null,
index: json.index

View File

@ -155,7 +155,7 @@ Output.prototype.toJSON = function toJSON() {
Output.parseJSON = function parseJSON(json) {
return {
value: utils.satoshi(json.value),
script: bcoin.script.parseRaw(json.script, 'hex'))
script: bcoin.script.parseRaw(json.script, 'hex')
};
};

View File

@ -64,7 +64,7 @@ function Witness(items, mutable) {
this.redeem = null;
assert(Array.isArray(items));
assert(Array.isArray(this.items));
}
/**
@ -923,7 +923,7 @@ function Script(code, mutable) {
this.redeem = null;
assert(Array.isArray(code));
assert(Array.isArray(this.code));
assert(!this.raw || Buffer.isBuffer(this.raw));
}