From 1474d492315062b48efd930eec8e624e3c9368fa Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 29 Dec 2017 15:51:29 -0800 Subject: [PATCH] script: remove useless vars. --- lib/script/script.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/script/script.js b/lib/script/script.js index faf2605d..b78575eb 100644 --- a/lib/script/script.js +++ b/lib/script/script.js @@ -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;