-
Notifications
You must be signed in to change notification settings - Fork 432
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
Improve syntax for ink! e2e runtime_only
attribute argument
#2083
Improve syntax for ink! e2e runtime_only
attribute argument
#2083
Conversation
Use `#[darling(word)]` to enable writing `#[ink_e2e::test(backend(runtime_only))]` instead of `#[ink_e2e::test(backend(runtime_only()))]`
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2083 +/- ##
==========================================
- Coverage 53.70% 53.69% -0.01%
==========================================
Files 223 223
Lines 7040 7043 +3
Branches 3141 3121 -20
==========================================
+ Hits 3781 3782 +1
- Misses 3259 3261 +2 ☔ View full report in Codecov by Sentry. |
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Tue Jan 30 05:45:51 CET 2024 |
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.
Thanks, much better!
Summary
Closes #_
cargo-contract
orpallet-contracts
?Use
#[darling(word)]
to enable writing#[ink_e2e::test(backend(runtime_only))]
instead of#[ink_e2e::test(backend(runtime_only()))]
Description
runtime_only
attribute argument by using#[darling(word)]
to enable writing#[ink_e2e::test(backend(runtime_only))]
instead of#[ink_e2e::test(backend(runtime_only()))]
See TedDriggs/darling#260 and https://github.com/TedDriggs/darling/blob/master/examples/heterogeneous_enum_and_word.rs for details.
Checklist before requesting a review
CHANGELOG.md