From 7e5287ccff6eca5aaaad6ee1b5a651a5c3fc1c8f Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 27 Nov 2017 09:26:36 -0800 Subject: [PATCH] Fix typo --- dist/index.js | 2 +- index.js | 1 + test/index.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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/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