script: remove useless vars.

This commit is contained in:
Christopher Jeffrey 2017-12-29 15:51:29 -08:00
parent 78df4f4d84
commit 1474d49231
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -26,8 +26,6 @@ const common = require('./common');
const Address = require('../primitives/address');
const opcodes = common.opcodes;
const scriptTypes = common.types;
const Hash160 = hash160;
const Sha256 = sha256;
const {encoding} = bio;
/*
@ -1813,7 +1811,7 @@ class Script {
*/
hash160(enc) {
let hash = Hash160.digest(this.toRaw());
let hash = hash160.digest(this.toRaw());
if (enc === 'hex')
hash = hash.toString('hex');
return hash;
@ -1826,7 +1824,7 @@ class Script {
*/
sha256(enc) {
let hash = Sha256.digest(this.toRaw());
let hash = sha256.digest(this.toRaw());
if (enc === 'hex')
hash = hash.toString('hex');
return hash;