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

Commit

Permalink
Turn wabt off by default
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jan 24, 2018
1 parent c03c667 commit 865310c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions bin/evm2wasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const input = ethUtil.toBuffer(process.argv[2])

evm2wasm.evm2wasm(input, {
stackTrace: process.argv[3] === "trace",
tempName: 'temp',
inlineOps: true,
wabt: true
}).then(function (output) {
console.log(output.toString('binary'))
}).catch(function (err) {
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const callbackFuncs = new Map([
exports.evm2wasm = function (evmCode, opts = {
'stackTrace': false,
'inlineOps': true,
'wabt': false,
'testName': 'temp'
}) {
const wast = exports.evm2wast(evmCode, opts)
Expand Down
3 changes: 1 addition & 2 deletions tests/codeRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ tape('testing transcompiler', async t => {
const {
buffer: compiled
} = await evm2wasm.evm2wasm(code, {
inlineOps: true,
wabt: true
inlineOps: true
})

const startingState = await state.get(accountAddress)
Expand Down
4 changes: 1 addition & 3 deletions tests/runVmTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ async function runner (testName, testData, t) {
buffer: evm
} = await evm2wasm.evm2wasm(code, {
stackTrace: argv.trace,
testName: testName,
inlineOps: true,
wabt: true
inlineOps: true
})

const rootVertex = new Vertex()
Expand Down

0 comments on commit 865310c

Please sign in to comment.