git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 9b0a23b3b60da5c801821cb2e1d65c73fa28d343

Files: 9b0a23b3b60da5c801821cb2e1d65c73fa28d343 / precompile.js

503 bytesRaw
1// const evm2wasm = require('evm2wasm')
2// const metering = require('wasm-metering')
3
4module.exports.meteringInjector = function (call) {
5 console.log('Executing metering injector')
6 return {
7 // returnValue: metering.injectWAST(call.data, 2).slice(0)
8 returnValue: call.data.slice(0)
9 }
10}
11
12module.exports.transcompiler = function (call) {
13 console.log('Executing transcompiler')
14 return {
15 // returnValue: evm2wasm.compileEVM(call.data).slice(0)
16 returnValue: call.data.slice(0)
17 }
18}
19

Built with git-ssb-web