From 61c57adbf86d8cee0122ae3ae15aae8d84a7938f Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sat, 31 May 2014 11:48:03 +1000 Subject: [PATCH] Address: Expected T, got PARAM for Buffer assertion --- src/address.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/address.js b/src/address.js index c469d0f..3e3fd1b 100644 --- a/src/address.js +++ b/src/address.js @@ -18,7 +18,7 @@ function findScriptTypeByVersion(queryVersion) { } function Address(hash, version) { - assert(Buffer.isBuffer(hash), 'First argument must be a Buffer') + assert(Buffer.isBuffer(hash), 'Expected Buffer, got ' + hash) assert.strictEqual(hash.length, 20, 'Invalid hash length') assert.strictEqual(version & 0xFF, version, 'Invalid version byte')