Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Replace solidity-compile with truffle's solc config #32

Open
armaniferrante opened this issue Nov 13, 2018 · 0 comments
Open

Replace solidity-compile with truffle's solc config #32

armaniferrante opened this issue Nov 13, 2018 · 0 comments

Comments

@armaniferrante
Copy link
Contributor

armaniferrante commented Nov 13, 2018

Currently we overwrite truffle's solidity compilation process and run truffle-compile internally within oasis-compile so that we can mark the outputs confidential. This ignores the solc settings inside of truffle-confg.js.

A better solution would be to, instead, let the default truffle-solidity-compiler do its compilation, and then we read that output from build/contracts and then transform that output into confidential contracts.

However, we can't do this in truffle, as is. Specifically truffle processes all its "compilers", i.e., solc, external, and vyper, aynschronously. As a result, if we try the suggested solution above, we will read the build directory before the solc is done (since the external compiler will start concurrently).

As a result, the proposed solution above, probably requires a change to truffle.

@armaniferrante armaniferrante changed the title Replace solidity-compile with truffle's solc Replace solidity-compile with truffle's solc config Nov 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant