diff --git a/index.js b/index.js index 3ca0a91..3c88e6c 100644 --- a/index.js +++ b/index.js @@ -44,7 +44,7 @@ function hash256(buffer) { function getMerkleRoot(transactions) { if (transactions.length === 0) return null; if (transactions.length === 1) return transactions[0].getHash(); - let hashes = [ reverseBuffer(transactions[0]).toString('hex') ]; + let hashes = [ reverseBuffer(transactions[0].getHash()).toString('hex') ]; transactions.split(1).forEach(function (value) { hashes.push(value.hash); }); diff --git a/package.json b/package.json index 6f97905..ad24536 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoforknote-util", - "version": "9.0.14", + "version": "9.0.15", "main": "cryptoforknote-util", "author": { "name": "LucasJones",