script: remove useless vars.
This commit is contained in:
parent
78df4f4d84
commit
1474d49231
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user