Bound all extrinsic inputs #281
Annotations
6 errors
pallets/tasks/src/lib.rs#L579
error[E0308]: mismatched types
--> pallets/tasks/src/lib.rs:579:31
|
579 | payload: Payload::Error(err),
| -------------- ^^^ expected `BoundedVec<u8, ConstU32<10000>>`, found `String`
| |
| arguments to this enum variant are incorrect
|
= note: expected struct `BoundedVec<u8, ConstU32<10000>>`
found struct `std::string::String`
note: tuple variant defined here
--> /home/runner-1/runner/_work/timechain/timechain/primitives/src/task.rs:88:2
|
88 | Error(BoundedVec<u8, ConstU32<MAX_ERROR_LEN>>),
| ^^^^^
|
pallets/tasks/src/lib.rs#L579
error[E0308]: mismatched types
--> pallets/tasks/src/lib.rs:579:31
|
579 | payload: Payload::Error(err),
| -------------- ^^^ expected `BoundedVec<u8, ConstU32<10000>>`, found `String`
| |
| arguments to this enum variant are incorrect
|
= note: expected struct `BoundedVec<u8, ConstU32<10000>>`
found struct `std::string::String`
note: tuple variant defined here
--> /home/runner-1/runner/_work/timechain/timechain/primitives/src/task.rs:88:2
|
88 | Error(BoundedVec<u8, ConstU32<MAX_ERROR_LEN>>),
| ^^^^^
|
pallets/tasks/src/lib.rs#L863
error[E0277]: the trait bound `BoundedVec<u8, ConstU32<10000>>: From<&str>` is not satisfied
--> pallets/tasks/src/lib.rs:863:67
|
863 | ... payload: Payload::Error("shard offline or gateway changed".into()),
| ^^^^ the trait `From<&str>` is not implemented for `BoundedVec<u8, ConstU32<10000>>`, which is required by `&str: Into<_>`
|
= note: required for `&str` to implement `Into<BoundedVec<u8, ConstU32<10000>>>`
|
pallets/tasks/src/lib.rs#L1090
error[E0277]: the trait bound `BoundedVec<u8, ConstU32<10000>>: From<&str>` is not satisfied
--> pallets/tasks/src/lib.rs:1090:68
|
1090 | ... payload: Payload::Error("shard offline or gateway changed".into()),
| ^^^^ the trait `From<&str>` is not implemented for `BoundedVec<u8, ConstU32<10000>>`, which is required by `&str: Into<_>`
|
= note: required for `&str` to implement `Into<BoundedVec<u8, ConstU32<10000>>>`
|
pallets/tasks/src/lib.rs#L1251
error[E0277]: the trait bound `BoundedVec<u8, ConstU32<10000>>: From<&str>` is not satisfied
--> pallets/tasks/src/lib.rs:1251:54
|
1251 | payload: Payload::Error("task cancelled by sudo".into()),
| ^^^^ the trait `From<&str>` is not implemented for `BoundedVec<u8, ConstU32<10000>>`, which is required by `&str: Into<_>`
|
= note: required for `&str` to implement `Into<BoundedVec<u8, ConstU32<10000>>>`
|
|
The logs for this run have expired and are no longer available.
Loading