embark/lib/core/runCode.js

19 lines
428 B
JavaScript
Raw Normal View History

2017-03-29 17:50:05 +00:00
let Web3 = require('web3');
let web3;
2017-02-18 21:53:49 +00:00
// ======================
// the eval is used for evaluating some of the contact calls for different purposes
// this should be at least moved to a different process and scope
// for now it is defined here
// ======================
function doEval(code, _web3) {
if (_web3) {
2017-03-30 11:12:39 +00:00
let web3 = _web3;
2017-02-18 21:53:49 +00:00
}
return eval(code); // jshint ignore:line
}
module.exports = {
doEval: doEval
};