Skip to content

Commit e8d1722

Browse files
committed
Fix tests
1 parent b42ed34 commit e8d1722

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

crates/lang/tests/ui/contract/fail/message-input-non-codec.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, Arg
3232
| T: scale::Encode,
3333
| ^^^^^^^^^^^^^ required by this bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`
3434

35-
error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder<DefaultEnvironment, Set<ink_env::call::Call<DefaultEnvironment, ink_env::AccountId, u64, u128>>, Set<ExecutionInput<ArgumentList<ink_env::call::utils::Argument<NonCodecType>, ArgumentList<ArgumentListEnd, ArgumentListEnd>>>>, Set<()>>`, but its trait bounds were not satisfied
35+
error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder<DefaultEnvironment, Set<Call<DefaultEnvironment, ink_env::AccountId, u64, u128>>, Set<ExecutionInput<ArgumentList<ink_env::call::utils::Argument<NonCodecType>, ArgumentList<ArgumentListEnd, ArgumentListEnd>>>>, Set<()>>`, but its trait bounds were not satisfied
3636
--> tests/ui/contract/fail/message-input-non-codec.rs:18:9
3737
|
3838
18 | pub fn message(&self, _input: NonCodecType) {}
39-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `ink_env::call::CallBuilder<DefaultEnvironment, Set<ink_env::call::Call<DefaultEnvironment, ink_env::AccountId, u64, u128>>, Set<ExecutionInput<ArgumentList<ink_env::call::utils::Argument<NonCodecType>, ArgumentList<ArgumentListEnd, ArgumentListEnd>>>>, Set<()>>` due to unsatisfied trait bounds
39+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `ink_env::call::CallBuilder<DefaultEnvironment, Set<Call<DefaultEnvironment, ink_env::AccountId, u64, u128>>, Set<ExecutionInput<ArgumentList<ink_env::call::utils::Argument<NonCodecType>, ArgumentList<ArgumentListEnd, ArgumentListEnd>>>>, Set<()>>` due to unsatisfied trait bounds
4040
|
4141
::: $WORKSPACE/crates/env/src/call/execution_input.rs
4242
|

crates/lang/tests/ui/contract/fail/message-returns-non-codec.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ note: required by a bound in `finalize_message`
2626
| R: scale::Encode + 'static,
2727
| ^^^^^^^^^^^^^ required by this bound in `finalize_message`
2828

29-
error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder<DefaultEnvironment, Set<ink_env::call::Call<DefaultEnvironment, ink_env::AccountId, u64, u128>>, Set<ExecutionInput<ArgumentList<ArgumentListEnd, ArgumentListEnd>>>, Set<ReturnType<NonCodecType>>>`, but its trait bounds were not satisfied
29+
error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder<DefaultEnvironment, Set<Call<DefaultEnvironment, ink_env::AccountId, u64, u128>>, Set<ExecutionInput<ArgumentList<ArgumentListEnd, ArgumentListEnd>>>, Set<ReturnType<NonCodecType>>>`, but its trait bounds were not satisfied
3030
--> tests/ui/contract/fail/message-returns-non-codec.rs:18:9
3131
|
3232
6 | pub struct NonCodecType;
@@ -35,7 +35,7 @@ error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder<De
3535
18 | / pub fn message(&self) -> NonCodecType {
3636
19 | | NonCodecType
3737
20 | | }
38-
| |_________^ method cannot be called on `ink_env::call::CallBuilder<DefaultEnvironment, Set<ink_env::call::Call<DefaultEnvironment, ink_env::AccountId, u64, u128>>, Set<ExecutionInput<ArgumentList<ArgumentListEnd, ArgumentListEnd>>>, Set<ReturnType<NonCodecType>>>` due to unsatisfied trait bounds
38+
| |_________^ method cannot be called on `ink_env::call::CallBuilder<DefaultEnvironment, Set<Call<DefaultEnvironment, ink_env::AccountId, u64, u128>>, Set<ExecutionInput<ArgumentList<ArgumentListEnd, ArgumentListEnd>>>, Set<ReturnType<NonCodecType>>>` due to unsatisfied trait bounds
3939
|
4040
= note: the following trait bounds were not satisfied:
4141
`NonCodecType: parity_scale_codec::Decode`

crates/lang/tests/ui/trait_def/fail/message_input_non_codec.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, Arg
2525
| T: scale::Encode,
2626
| ^^^^^^^^^^^^^ required by this bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`
2727

28-
error[E0599]: the method `fire` exists for struct `CallBuilder<E, Set<ink_env::call::Call<E, <E as Environment>::AccountId, u64, <E as Environment>::Balance>>, Set<ExecutionInput<ArgumentList<ink_env::call::utils::Argument<NonCodec>, ArgumentList<ArgumentListEnd, ArgumentListEnd>>>>, Set<()>>`, but its trait bounds were not satisfied
28+
error[E0599]: the method `fire` exists for struct `CallBuilder<E, Set<Call<E, <E as Environment>::AccountId, u64, <E as Environment>::Balance>>, Set<ExecutionInput<ArgumentList<ink_env::call::utils::Argument<NonCodec>, ArgumentList<ArgumentListEnd, ArgumentListEnd>>>>, Set<()>>`, but its trait bounds were not satisfied
2929
--> tests/ui/trait_def/fail/message_input_non_codec.rs:7:5
3030
|
3131
7 | / #[ink(message)]
3232
8 | | fn message(&self, input: NonCodec);
33-
| |_______________________________________^ method cannot be called on `CallBuilder<E, Set<ink_env::call::Call<E, <E as Environment>::AccountId, u64, <E as Environment>::Balance>>, Set<ExecutionInput<ArgumentList<ink_env::call::utils::Argument<NonCodec>, ArgumentList<ArgumentListEnd, ArgumentListEnd>>>>, Set<()>>` due to unsatisfied trait bounds
33+
| |_______________________________________^ method cannot be called on `CallBuilder<E, Set<Call<E, <E as Environment>::AccountId, u64, <E as Environment>::Balance>>, Set<ExecutionInput<ArgumentList<ink_env::call::utils::Argument<NonCodec>, ArgumentList<ArgumentListEnd, ArgumentListEnd>>>>, Set<()>>` due to unsatisfied trait bounds
3434
|
3535
::: $WORKSPACE/crates/env/src/call/execution_input.rs
3636
|

crates/lang/tests/ui/trait_def/fail/message_output_non_codec.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ note: required by a bound in `DispatchOutput`
1111
| T: scale::Encode + 'static;
1212
| ^^^^^^^^^^^^^ required by this bound in `DispatchOutput`
1313

14-
error[E0599]: the method `fire` exists for struct `CallBuilder<E, Set<ink_env::call::Call<E, <E as Environment>::AccountId, u64, <E as Environment>::Balance>>, Set<ExecutionInput<ArgumentList<ArgumentListEnd, ArgumentListEnd>>>, Set<ReturnType<NonCodec>>>`, but its trait bounds were not satisfied
14+
error[E0599]: the method `fire` exists for struct `CallBuilder<E, Set<Call<E, <E as Environment>::AccountId, u64, <E as Environment>::Balance>>, Set<ExecutionInput<ArgumentList<ArgumentListEnd, ArgumentListEnd>>>, Set<ReturnType<NonCodec>>>`, but its trait bounds were not satisfied
1515
--> tests/ui/trait_def/fail/message_output_non_codec.rs:7:5
1616
|
1717
3 | pub struct NonCodec;
1818
| -------------------- doesn't satisfy `NonCodec: parity_scale_codec::Decode`
1919
...
2020
7 | / #[ink(message)]
2121
8 | | fn message(&self) -> NonCodec;
22-
| |__________________________________^ method cannot be called on `CallBuilder<E, Set<ink_env::call::Call<E, <E as Environment>::AccountId, u64, <E as Environment>::Balance>>, Set<ExecutionInput<ArgumentList<ArgumentListEnd, ArgumentListEnd>>>, Set<ReturnType<NonCodec>>>` due to unsatisfied trait bounds
22+
| |__________________________________^ method cannot be called on `CallBuilder<E, Set<Call<E, <E as Environment>::AccountId, u64, <E as Environment>::Balance>>, Set<ExecutionInput<ArgumentList<ArgumentListEnd, ArgumentListEnd>>>, Set<ReturnType<NonCodec>>>` due to unsatisfied trait bounds
2323
|
2424
= note: the following trait bounds were not satisfied:
2525
`NonCodec: parity_scale_codec::Decode`

0 commit comments

Comments
 (0)