diff --git a/dist/index.js b/dist/index.js index 24b1507..e8b3ab2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2662,7 +2662,7 @@ function namehash (inputName) { } } - return `0x${node}` + return '0x' + node } function normalize(name) { diff --git a/index.js b/index.js index 759433c..939e751 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,7 @@ function namehash (inputName) { } return '0x' + node +} function normalize(name) { return name ? uts46.toUnicode(name, {useStd3ASCII: true, transitional: false}) : name diff --git a/package.json b/package.json index 4ec4efd..fdc4045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eth-ens-namehash", - "version": "2.0.7", + "version": "2.0.8", "description": "A simple module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137", "main": "index.js", "scripts": { diff --git a/test/index.js b/test/index.js index 3191e91..6d93725 100644 --- a/test/index.js +++ b/test/index.js @@ -1,5 +1,5 @@ const test = require('tape') -const namehash = require('../dist') +const namehash = require('../') // Test results specified in original ENS Proposal: // https://github.com/ethereum/EIPs/issues/137