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

solc warnings with export-abi --json #27

Closed
afosan opened this issue Jan 27, 2024 · 1 comment · May be fixed by OffchainLabs/stylus-sdk-rs#101
Closed

solc warnings with export-abi --json #27

afosan opened this issue Jan 27, 2024 · 1 comment · May be fixed by OffchainLabs/stylus-sdk-rs#101

Comments

@afosan
Copy link
Contributor

afosan commented Jan 27, 2024

Not a critical issue at all, but cargo stylus export-abi --json prints out solc warnings, which does not seem ideal. Example from repo.

Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> <stdin>

Warning: Source file does not specify required compiler version! Consider adding "pragma solidity ^0.8.22;"
--> <stdin>


======= <stdin>:IContract =======
Contract JSON ABI
[{"inputs":[],"name":"withMutableReferenceToSelf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withReferenceToSelf","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withoutSelf","outputs":[],"stateMutability":"pure","type":"function"}]
@rauljordan
Copy link
Contributor

Thanks @afosan for reporting ! fixed in OffchainLabs/stylus-sdk-rs#101

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 a pull request may close this issue.

2 participants