Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Contracts add wasm ink contract in test#14563

Closed
pgherveou wants to merge 6 commits into
masterfrom
pg/ink_in_test
Closed

Contracts add wasm ink contract in test#14563
pgherveou wants to merge 6 commits into
masterfrom
pg/ink_in_test

Conversation

@pgherveou

@pgherveou pgherveou commented Jul 12, 2023

Copy link
Copy Markdown
Contributor

Add an Ink! compiled contract to the test suite

@paritytech-cicd-pr

Copy link
Copy Markdown

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3173776

Comment thread frame/contracts/src/tests.rs Outdated
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
@pgherveou pgherveou marked this pull request as ready for review July 14, 2023 07:45
@pgherveou pgherveou requested a review from a team July 14, 2023 07:45
@pgherveou pgherveou added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jul 14, 2023
Comment on lines +717 to +719
let mut debug_message =
if cfg!(test) { Some(DebugBufferVec::<T>::default()) } else { None };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I really don't like having test conditionals in the main code, but if there isn't another way I think it would look cleaner with feature flags

@pgherveou

Copy link
Copy Markdown
Contributor Author

will close this as @athei mentioned that we should not have dependencies to ink in the pallet-contracts code (see comment in #14565

@pgherveou pgherveou closed this Jul 14, 2023
@athei athei deleted the pg/ink_in_test branch July 21, 2023 15:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants