question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Override the Solidity `outputSelection` via config

See original GitHub issue

Issue

I’ve like to be able to specify the Solidity outputSelection in my Truffle config as defined by the Solidity compiler https://solidity.readthedocs.io/en/v0.6.1/using-the-compiler.html#input-description

For my use case, I’d like to include the evm.methodIdentifiers in the Solidity compiler output. But it’d be good to allow all the outputSelections to be overridden.

Steps to Reproduce

The output selections are currently hard coded at https://github.com/trufflesuite/truffle/blob/develop/packages/compile-solidity/run.js#L211-L223

Expected Behavior

The default output selections should be overridable via the Truffle config.

Actual Results

The selections can not be overridden at the moment.

Environment

  • Operating System:
  • Ethereum client:
  • Truffle version (truffle version): 5.1.9
  • node version (node --version):
  • npm version (npm --version):

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
FabioBonfigliocommented, Aug 23, 2020

Been trying for hours to figure out why outputSelection in my truffle-config did not had any effect. Would be useful to update the documentation here, just after the link to the solidity documentation, and mention that outputSelection isn’t considered (yet).

If that can help: my goal is to avoid sensitive informations (like local paths) to be included in the files, before publishing the builds.

1reaction
adridadoucommented, Feb 26, 2021

Any news on this one? I also want to override it to add “storageLayout”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solc Compiler Options - Solidity Programming Language
No information is available for this page.
Read more >
Solidity Documentation - Read the Docs
Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs.
Read more >
Unable to get abi and bytecode when compiling using solc
I am trying to compile a contract using solidity compiler version 0.5.3 instead and am able to get the output from the compiler...
Read more >
Configuration - Truffle Suite
Networks are identified through Ethereum's net_version RPC call, as well as blockchain URIs. The networks object, shown below, is keyed by network names...
Read more >
Solidity: Abstract contract and override VRFConsumerBase ...
Using pragma solidity ^0.6.6; and v0.6 of the VRF as well as AggregatorV3Interface.sol and Ownable.sol I get two errors either in the editor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found