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

Update ERC20 Example + Eliminate Solc Warnings on Exports #101

Open
wants to merge 6 commits into
base: stylus
Choose a base branch
from

Conversation

rauljordan
Copy link
Contributor

This PR updates the erc20 example to the latest Stylus patterns of using a library for programs, alongside .cargo config optimizations. It also fixes OffchainLabs/cargo-stylus#27, which was annoying when trying to do a json ABI export to users

Copy link
Member

@joshuacolvin0 joshuacolvin0 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -40,6 +40,8 @@ pub fn print_abi<T: GenerateAbi>() {
println!(" * For more information, please see [The Stylus SDK](https://github.com/OffchainLabs/stylus-sdk-rs).");
println!(" */");
println!();
println!("// SPDX-License-Identifier: TODO");
Copy link
Contributor

Choose a reason for hiding this comment

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

We should either parse the toml for this or drop the line imo. Otherwise you're letting the consumer of the crate decide the license of the abi in a way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, will drop this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do some investigation into parsing the toml to get rid of the pesky warning and use the right license here

@rauljordan
Copy link
Contributor Author

updated @rachel-bousfield , ty for looking it over

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

solc warnings with export-abi --json
3 participants