diff --git a/TODO.md b/TODO.md index 62d8e79d..fcdcd91f 100644 --- a/TODO.md +++ b/TODO.md @@ -27,3 +27,4 @@ Todo before release. Excuse the mess. - backupwallet - listaddressgroupings - importaddress (maybe) +- rename cost to weight. diff --git a/lib/primitives/address.js b/lib/primitives/address.js index 10767d80..512b71f8 100644 --- a/lib/primitives/address.js +++ b/lib/primitives/address.js @@ -299,7 +299,7 @@ Address.prototype.fromScript = function fromScript(script) { // Put this last: it's the slowest to check. if (script.isMultisig()) { - this.hash = utils.hash160(script.toRaw()); + this.hash = script.hash160(); this.type = scriptTypes.SCRIPTHASH; this.version = -1; return this;