Skip to content

Commit

Permalink
Fix #928 Put "*" to outputSelection
Browse files Browse the repository at this point in the history
As a workaround to Compiler error on Sourcify, not with truffle/hardhat #928
we tell compiler to output all file paths but only the contract with the
compilation target name.
  • Loading branch information
kuzdogan committed Feb 24, 2023
1 parent 827aaab commit 2139ffa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/lib-sourcify/src/lib/CheckedContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ function createJsonInputFromMetadata(
metadata: solcJsonInput?.settings?.metadata || {},
};

solcJsonInput.settings.outputSelection[contractPath] =
solcJsonInput.settings.outputSelection[contractPath] || {};
solcJsonInput.settings.outputSelection['*'] =
solcJsonInput.settings.outputSelection['*'] || {};

solcJsonInput.settings.outputSelection[contractPath][contractName] = [
solcJsonInput.settings.outputSelection['*'][contractName] = [
'evm.bytecode.object',
'evm.deployedBytecode.object',
'metadata',
Expand Down

0 comments on commit 2139ffa

Please sign in to comment.