Remove async calls from revive

This commit is contained in:
Sebastian Miasojed
2024-11-26 22:03:57 +01:00
parent 1eb1083d40
commit b65fa2e42c
6 changed files with 38 additions and 91 deletions
+3 -4
View File
@@ -1,6 +1,5 @@
import solc from 'solc';
// Import the Emscripten module
import createRevive from './dist/revive-esm/resolc.js';
const solc = require('solc');
const createRevive = require('./dist/revive-cjs/resolc.js');
const compilerStandardJsonInput = {
language: 'Solidity',
@@ -31,7 +30,7 @@ const compilerStandardJsonInput = {
};
async function runCompiler() {
const m = await createRevive();
const m = createRevive();
m.solc = solc;
// Set input data for stdin