From f24e2d847773412a1aea01580d125e0c29eadaa2 Mon Sep 17 00:00:00 2001 From: xermicus Date: Sat, 31 Jan 2026 11:05:21 +0100 Subject: [PATCH] npm package: fix `--bin` (#467) The `--bin` CLI flag was not producing bytecode because the `outputSelection` was not updated to explicitly requested it. Signed-off-by: Cyrill Leutwiler --- CHANGELOG.md | 4 ++++ js/resolc/src/index.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8b1531..57502ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ This is a development pre-release. +### Fixed + +- npm package: The `--bin` CLI flag was not producing bytecode because the `outputSelection` was not updated to explicitly requested it. + ## v1.0.0 Supported `polkadot-sdk` rev: `unstable2507` diff --git a/js/resolc/src/index.ts b/js/resolc/src/index.ts index 9843e4f..bd19a73 100644 --- a/js/resolc/src/index.ts +++ b/js/resolc/src/index.ts @@ -111,7 +111,7 @@ export async function compile( optimizer, outputSelection: { '*': { - '*': ['abi'], + '*': ['abi', 'evm.bytecode'], }, }, },