-
Notifications
You must be signed in to change notification settings - Fork 426
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
Field events.docs
in metadata starts with whitespace
#1448
Comments
After applying your changes to the ink!, go through reproduction steps that @cmichi described above. |
Closed as solved in #1711 |
Problem
The
events.docs
field in themetadata.json
and*.contract
file contains a whitespace at the beginning. We had this for other fields as well, please see the issue #920 for a description. We can't just remove every whitespace at the beginning, as for code blocks it would be valid.We introduced a fix in #1385, but forgot about this field. We need to apply the same fix for
docs
under events. Please also make sure the tests cover this case as well with your PR.As a reviewer please assign @SkymanOne.
Reproducer
(1)
cargo contract new foo && cd foo/
(2) Add the following event inside
#[ink::contract] mod foo { … }
.(3) Execute this:
The text was updated successfully, but these errors were encountered: