Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xgreenx committed Mar 1, 2022
1 parent b42ed34 commit e8d1722
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, Arg
| T: scale::Encode,
| ^^^^^^^^^^^^^ required by this bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`

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
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
--> 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<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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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
|
::: $WORKSPACE/crates/env/src/call/execution_input.rs
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<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
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
--> tests/ui/contract/fail/message-returns-non-codec.rs:18:9
|
6 | pub struct NonCodecType;
Expand All @@ -35,7 +35,7 @@ error[E0599]: the method `fire` exists for struct `ink_env::call::CallBuilder<De
18 | / pub fn message(&self) -> NonCodecType {
19 | | NonCodecType
20 | | }
| |_________^ 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
| |_________^ 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
|
= note: the following trait bounds were not satisfied:
`NonCodecType: parity_scale_codec::Decode`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ note: required by a bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, Arg
| T: scale::Encode,
| ^^^^^^^^^^^^^ required by this bound in `ExecutionInput::<ArgumentList<ArgumentListEnd, ArgumentListEnd>>::push_arg`

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
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
--> 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<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
| |_______________________________________^ 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
|
::: $WORKSPACE/crates/env/src/call/execution_input.rs
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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<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
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
--> tests/ui/trait_def/fail/message_output_non_codec.rs:7:5
|
3 | pub struct NonCodec;
| -------------------- doesn't satisfy `NonCodec: parity_scale_codec::Decode`
...
7 | / #[ink(message)]
8 | | fn message(&self) -> NonCodec;
| |__________________________________^ 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
| |__________________________________^ 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
|
= note: the following trait bounds were not satisfied:
`NonCodec: parity_scale_codec::Decode`
Expand Down

0 comments on commit e8d1722

Please sign in to comment.