From e8d17228b7bc623ed38849d1121ebf38e592ea11 Mon Sep 17 00:00:00 2001 From: xgreenx Date: Tue, 1 Mar 2022 18:24:48 +0200 Subject: [PATCH] Fix tests --- .../tests/ui/contract/fail/message-input-non-codec.stderr | 4 ++-- .../tests/ui/contract/fail/message-returns-non-codec.stderr | 4 ++-- .../tests/ui/trait_def/fail/message_input_non_codec.stderr | 4 ++-- .../tests/ui/trait_def/fail/message_output_non_codec.stderr | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/lang/tests/ui/contract/fail/message-input-non-codec.stderr b/crates/lang/tests/ui/contract/fail/message-input-non-codec.stderr index 6df06359ac0..3b12ee22c54 100644 --- a/crates/lang/tests/ui/contract/fail/message-input-non-codec.stderr +++ b/crates/lang/tests/ui/contract/fail/message-input-non-codec.stderr @@ -32,11 +32,11 @@ note: required by a bound in `ExecutionInput::>::push_arg` -error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder>, Set, ArgumentList>>>, Set<()>>`, but its trait bounds were not satisfied +error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder>, Set, ArgumentList>>>, Set<()>>`, but its trait bounds were not satisfied --> tests/ui/contract/fail/message-input-non-codec.rs:18:9 | 18 | pub fn message(&self, _input: NonCodecType) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `ink_env::call::CallBuilder>, Set, ArgumentList>>>, Set<()>>` due to unsatisfied trait bounds + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `ink_env::call::CallBuilder>, Set, ArgumentList>>>, Set<()>>` due to unsatisfied trait bounds | ::: $WORKSPACE/crates/env/src/call/execution_input.rs | diff --git a/crates/lang/tests/ui/contract/fail/message-returns-non-codec.stderr b/crates/lang/tests/ui/contract/fail/message-returns-non-codec.stderr index e86983cf234..c7b181d2dab 100644 --- a/crates/lang/tests/ui/contract/fail/message-returns-non-codec.stderr +++ b/crates/lang/tests/ui/contract/fail/message-returns-non-codec.stderr @@ -26,7 +26,7 @@ note: required by a bound in `finalize_message` | R: scale::Encode + 'static, | ^^^^^^^^^^^^^ required by this bound in `finalize_message` -error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder>, Set>>, Set>>`, but its trait bounds were not satisfied +error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder>, Set>>, Set>>`, but its trait bounds were not satisfied --> tests/ui/contract/fail/message-returns-non-codec.rs:18:9 | 6 | pub struct NonCodecType; @@ -35,7 +35,7 @@ error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder NonCodecType { 19 | | NonCodecType 20 | | } - | |_________^ method cannot be called on `ink_env::call::CallBuilder>, Set>>, Set>>` due to unsatisfied trait bounds + | |_________^ method cannot be called on `ink_env::call::CallBuilder>, Set>>, Set>>` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `NonCodecType: parity_scale_codec::Decode` diff --git a/crates/lang/tests/ui/trait_def/fail/message_input_non_codec.stderr b/crates/lang/tests/ui/trait_def/fail/message_input_non_codec.stderr index cd96d174861..448fc8c253a 100644 --- a/crates/lang/tests/ui/trait_def/fail/message_input_non_codec.stderr +++ b/crates/lang/tests/ui/trait_def/fail/message_input_non_codec.stderr @@ -25,12 +25,12 @@ note: required by a bound in `ExecutionInput::>::push_arg` -error[E0599]: the method `fire` exists for struct `CallBuilder::AccountId, u64, ::Balance>>, Set, ArgumentList>>>, Set<()>>`, but its trait bounds were not satisfied +error[E0599]: the method `fire` exists for struct `CallBuilder::AccountId, u64, ::Balance>>, Set, ArgumentList>>>, Set<()>>`, but its trait bounds were not satisfied --> tests/ui/trait_def/fail/message_input_non_codec.rs:7:5 | 7 | / #[ink(message)] 8 | | fn message(&self, input: NonCodec); - | |_______________________________________^ method cannot be called on `CallBuilder::AccountId, u64, ::Balance>>, Set, ArgumentList>>>, Set<()>>` due to unsatisfied trait bounds + | |_______________________________________^ method cannot be called on `CallBuilder::AccountId, u64, ::Balance>>, Set, ArgumentList>>>, Set<()>>` due to unsatisfied trait bounds | ::: $WORKSPACE/crates/env/src/call/execution_input.rs | diff --git a/crates/lang/tests/ui/trait_def/fail/message_output_non_codec.stderr b/crates/lang/tests/ui/trait_def/fail/message_output_non_codec.stderr index 7e78e496409..2cddd3bb29f 100644 --- a/crates/lang/tests/ui/trait_def/fail/message_output_non_codec.stderr +++ b/crates/lang/tests/ui/trait_def/fail/message_output_non_codec.stderr @@ -11,7 +11,7 @@ note: required by a bound in `DispatchOutput` | T: scale::Encode + 'static; | ^^^^^^^^^^^^^ required by this bound in `DispatchOutput` -error[E0599]: the method `fire` exists for struct `CallBuilder::AccountId, u64, ::Balance>>, Set>>, Set>>`, but its trait bounds were not satisfied +error[E0599]: the method `fire` exists for struct `CallBuilder::AccountId, u64, ::Balance>>, Set>>, Set>>`, but its trait bounds were not satisfied --> tests/ui/trait_def/fail/message_output_non_codec.rs:7:5 | 3 | pub struct NonCodec; @@ -19,7 +19,7 @@ error[E0599]: the method `fire` exists for struct `CallBuilder NonCodec; - | |__________________________________^ method cannot be called on `CallBuilder::AccountId, u64, ::Balance>>, Set>>, Set>>` due to unsatisfied trait bounds + | |__________________________________^ method cannot be called on `CallBuilder::AccountId, u64, ::Balance>>, Set>>, Set>>` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `NonCodec: parity_scale_codec::Decode`