Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
Ensure that arguments to evm2wasm.js are treated as string
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Mar 28, 2018
1 parent 74e1056 commit e81136a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/evm2wasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down

0 comments on commit e81136a

Please sign in to comment.