-
Notifications
You must be signed in to change notification settings - Fork 82
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
base: stylus
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
stylus-sdk/src/abi/export.rs
Outdated
@@ -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"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
updated @rachel-bousfield , ty for looking it over |
…-sdk-rs into update-erc20-example
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