From e81136ae2f98997eabdfd334c4f6f82475bf9615 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 27 Mar 2018 10:48:39 +0100 Subject: [PATCH] Ensure that arguments to evm2wasm.js are treated as string --- bin/evm2wasm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/evm2wasm.js b/bin/evm2wasm.js index d7a5a26f..80c1a756 100755 --- a/bin/evm2wasm.js +++ b/bin/evm2wasm.js @@ -56,7 +56,8 @@ let bytecode try { if (!inputFile) { if (argv._.length > 0) { - bytecode = argv._[0] + // ensure it is a string even it was passed as a number + bytecode = argv._[0].toString() } else { throw new Error('must provide evm bytecode file or supply bytecode as a non-named argument') }