Browse Source

pubkeyHash => pubKeyHash

master
Luke Childs 6 years ago
parent
commit
42ac2565da
  1. 6
      src/index.js

6
src/index.js

@ -33,13 +33,13 @@ const buildOutputScript = outputs => {
let outputScript = [...numberToCompactSizeUInt(outputs.length)]; let outputScript = [...numberToCompactSizeUInt(outputs.length)];
for (const [address, value] of outputs) { for (const [address, value] of outputs) {
const pubkeyHash = addressDecode(address); const pubKeyHash = addressDecode(address);
const scriptPubKey = [ const scriptPubKey = [
OP_DUP, OP_DUP,
OP_HASH160, OP_HASH160,
pubkeyHash.length, pubKeyHash.length,
...pubkeyHash, ...pubKeyHash,
OP_EQUALVERIFY, OP_EQUALVERIFY,
OP_CHECKSIG OP_CHECKSIG
]; ];

Loading…
Cancel
Save