Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

feat: use ethers_solc::Solc instead of ethers_core::utils::Solc #546

Merged
merged 16 commits into from
Oct 31, 2021

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Oct 30, 2021

We get rid of ethers_core::utils::Solc (and the concurrent ganache/geth) setup methods associated with it) and replace it with the more powerful ethers-solc::Solc and ethers-solc::Project.

As drive by changes, we also deserialise the String bytecode as Bytes and the serde_json::Value as Abi.

@gakonst gakonst force-pushed the feat/replace-core-solc branch from db052f5 to d7e14af Compare October 30, 2021 21:17
Comment on lines +34 to +37
let compiled = match compiled {
ProjectCompileOutput::Compiled((output, _)) => output,
_ => panic!("expected compilation artifacts"),
};
Copy link
Collaborator

@mattsse mattsse Oct 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we should think about either:

  • adding an error type in ethers-solc that treats a CompilerOutput of Project::compile as a hard error as Err(CompilerOutput), this will be more convenient for build scripts and gets rid of the println!("{}", output); to print diagnostics
  • add a CompilerOutput::into_result function

@gakonst gakonst merged commit f0dea75 into master Oct 31, 2021
@gakonst gakonst deleted the feat/replace-core-solc branch October 31, 2021 11:34
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* docs: document test-matchers with examples and patterns

* docs: fix typos

* Update cli/README.md

Co-authored-by: Georgios Konstantopoulos <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants