address: fix witnessscripthash.

This commit is contained in:
Christopher Jeffrey 2017-01-09 23:25:35 -08:00
parent 6e298c445a
commit fb53992bf6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -597,7 +597,7 @@ Address.prototype.fromWitnessScripthash = function fromWitnessScripthash(hash, n
*/
Address.fromWitnessScripthash = function fromWitnessScripthash(hash, network) {
return new Address().fromScripthash(hash, network);
return new Address().fromWitnessScripthash(hash, network);
};
/**