Progress 5 #1043
base_checks.yaml
on: push
clean-up-actions
2s
compile-and-check
23m 21s
Annotations
3 errors
method `post_upgrade` has an incompatible type for trait:
pallets/xc-asset-config/src/migrations.rs#L97
error[E0053]: method `post_upgrade` has an incompatible type for trait
--> pallets/xc-asset-config/src/migrations.rs:97:40
|
97 | fn post_upgrade(state: Vec<u8>) -> Result<(), &'static str> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected `DispatchError`, found `&'static str`
| help: change the output type to match the trait: `std::result::Result<(), frame_support::dispatch::DispatchError>`
|
= note: expected signature `fn(frame_benchmarking::Vec<_>) -> std::result::Result<_, frame_support::dispatch::DispatchError>`
found signature `fn(frame_benchmarking::Vec<_>) -> std::result::Result<_, &'static str>`
|
method `pre_upgrade` has an incompatible type for trait:
pallets/xc-asset-config/src/migrations.rs#L89
error[E0053]: method `pre_upgrade` has an incompatible type for trait
--> pallets/xc-asset-config/src/migrations.rs:89:25
|
89 | fn pre_upgrade() -> Result<Vec<u8>, &'static str> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected `DispatchError`, found `&'static str`
| help: change the output type to match the trait: `std::result::Result<frame_benchmarking::Vec<u8>, frame_support::dispatch::DispatchError>`
|
= note: expected signature `fn() -> std::result::Result<_, frame_support::dispatch::DispatchError>`
found signature `fn() -> std::result::Result<_, &'static str>`
|
compile-and-check
Process completed with exit code 101.
|