Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C headers: utility to generate c code from solc output #10

Merged
merged 18 commits into from
Sep 18, 2023

Conversation

tsahee
Copy link
Contributor

@tsahee tsahee commented Sep 14, 2023

No description provided.

@cla-bot cla-bot bot added the s label Sep 14, 2023
pathbuf.push(solidity_file_name);
fs::create_dir_all(&pathbuf)?;

for (contract_name, contract_val) in contracts {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @tsahee looks like you could use https://docs.rs/alloy-json-abi/latest/alloy_json_abi/ and avoid all of this json parsing. You also get access to state mutability and everything else needed in this file

@rachel-bousfield rachel-bousfield merged commit 7335464 into main Sep 18, 2023
@rachel-bousfield rachel-bousfield deleted the c_headers branch September 18, 2023 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants