solc-js icon indicating copy to clipboard operation
solc-js copied to clipboard

Handle standard JSON transalation with `outputSelection` for `=<0.4.19`

Open kuzdogan opened this issue 1 year ago • 0 comments

We've come across an issue while recompiling a contract with 0.4.19 as laid out here: https://github.com/ethereum/sourcify/issues/1017

TLDR: The compiler gives empty JSON output without throwing because the outputSelection fields were introduced in 0.4.18 and updated in 0.4.19.

I believe the outputSelection field needs to be handled by the JSON translator translate.ts of solc-js for the earlier versions.

kuzdogan avatar May 08 '23 15:05 kuzdogan