mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-23 10:48:00 +00:00
Pack resolc.wasm and resolc.js to resolc_packed.js
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
const soljson = require('solc/soljson');
|
||||
const createRevive = require('./resolc.js');
|
||||
const soljson = require("solc/soljson");
|
||||
const createRevive = require("./resolc.js");
|
||||
|
||||
async function compile(standardJsonInput) {
|
||||
if (!standardJsonInput) {
|
||||
throw new Error('Input JSON for the Solidity compiler is required.');
|
||||
throw new Error("Input JSON for the Solidity compiler is required.");
|
||||
}
|
||||
|
||||
// Initialize the compiler
|
||||
@@ -14,7 +14,7 @@ async function compile(standardJsonInput) {
|
||||
compiler.writeToStdin(JSON.stringify(standardJsonInput));
|
||||
|
||||
// Run the compiler
|
||||
compiler.callMain(['--standard-json']);
|
||||
compiler.callMain(["--standard-json"]);
|
||||
|
||||
// Collect output
|
||||
const stdout = compiler.readFromStdout();
|
||||
@@ -29,4 +29,4 @@ async function compile(standardJsonInput) {
|
||||
return stdout;
|
||||
}
|
||||
|
||||
module.exports = { compile };
|
||||
module.exports = { compile };
|
||||
|
||||
Reference in New Issue
Block a user