mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-21 03:06:17 +00:00
The `--bin` CLI flag was not producing bytecode because the `outputSelection` was not updated to explicitly requested it. Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
Usage from Node.js
import { compile } from "@parity/resolc";
const sources = {
["contracts/1_Storage.sol"]: {
content: readFileSync("fixtures/storage.sol", "utf8"),
}
const out = await compile(sources);
Usage from shell
npx @parity/resolc@latest --bin contracts/1_Storage.sol