Skip to content

Commit

Permalink
script: remove useless vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Mar 30, 2018
1 parent 78df4f4 commit 1474d49
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 1474d49

Please sign in to comment.