fix(tests): fix a bunch of tests after the wit/2 integation #5677
Annotations
30 errors and 9 warnings
the method `remove_stake` exists for mutable reference `&mut Stakes<PublicKeyHash, Wit, Epoch, Power>`, but its trait bounds were not satisfied:
data_structures/src/staking/stakes.rs#L487
error[E0599]: the method `remove_stake` exists for mutable reference `&mut Stakes<PublicKeyHash, Wit, Epoch, Power>`, but its trait bounds were not satisfied
--> data_structures/src/staking/stakes.rs:487:12
|
487 | stakes.remove_stake(key, coins)?;
| ^^^^^^^^^^^^ method cannot be called on `&mut Stakes<PublicKeyHash, Wit, Epoch, Power>` due to unsatisfied trait bounds
|
note: trait bound `Power: std::iter::Sum` was not satisfied
--> data_structures/src/staking/stakes.rs:120:79
|
92 | impl<Address, Coins, Epoch, Power> Stakes<Address, Coins, Epoch, Power>
| ------------------------------------
...
120 | Power: Copy + Default + Ord + Add<Output = Power> + Div<Output = Power> + Sum,
| ^^^ unsatisfied trait bound introduced here
help: consider restricting the type parameter to satisfy the trait bound
|
471 | u64: From<Wit> + From<Power>, Power: std::iter::Sum
| ~~~~~~~~~~~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1424
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1424:19
|
1424 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1424 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1398
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1398:19
|
1398 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1398 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1385
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1385:19
|
1385 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1385 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1373
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1373:19
|
1373 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1373 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1346
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1346:19
|
1346 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1346 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1305
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1305:28
|
1305 | let my_reveals = p.update_data_request_stages();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1305 | let my_reveals = p.update_data_request_stages(/* usize */);
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1249
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1249:19
|
1249 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1249 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1237
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1237:19
|
1237 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1237 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1225
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1225:19
|
1225 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1225 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1213
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1213:19
|
1213 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1213 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1170
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1170:19
|
1170 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1170 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1148
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1148:19
|
1148 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1148 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1127
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1127:19
|
1127 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1127 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1081
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1081:19
|
1081 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1081 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1069
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1069:19
|
1069 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1069 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1057
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1057:19
|
1057 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1057 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L1036
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:1036:19
|
1036 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
1036 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L966
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:966:19
|
966 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
966 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L941
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:941:19
|
941 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
941 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L894
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:894:19
|
894 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
894 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L852
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:852:19
|
852 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
852 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L817
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:817:19
|
817 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
817 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
this method takes 1 argument but 0 arguments were supplied:
data_structures/src/data_request.rs#L782
error[E0061]: this method takes 1 argument but 0 arguments were supplied
--> data_structures/src/data_request.rs:782:19
|
782 | assert!(p.update_data_request_stages().is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `usize` is missing
|
note: method defined here
--> data_structures/src/data_request.rs:245:12
|
245 | pub fn update_data_request_stages(&mut self, validator_count: usize) -> Vec<RevealTransaction> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------
help: provide the argument
|
782 | assert!(p.update_data_request_stages(/* usize */).is_empty());
| ~~~~~~~~~~~~~
|
the method `remove_stake` exists for mutable reference `&mut Stakes<PublicKeyHash, Wit, Epoch, Power>`, but its trait bounds were not satisfied:
data_structures/src/staking/stakes.rs#L487
error[E0599]: the method `remove_stake` exists for mutable reference `&mut Stakes<PublicKeyHash, Wit, Epoch, Power>`, but its trait bounds were not satisfied
--> data_structures/src/staking/stakes.rs:487:12
|
487 | stakes.remove_stake(key, coins)?;
| ^^^^^^^^^^^^ method cannot be called on `&mut Stakes<PublicKeyHash, Wit, Epoch, Power>` due to unsatisfied trait bounds
|
note: trait bound `Power: std::iter::Sum` was not satisfied
--> data_structures/src/staking/stakes.rs:120:79
|
92 | impl<Address, Coins, Epoch, Power> Stakes<Address, Coins, Epoch, Power>
| ------------------------------------
...
120 | Power: Copy + Default + Ord + Add<Output = Power> + Div<Output = Power> + Sum,
| ^^^ unsatisfied trait bound introduced here
help: consider restricting the type parameter to satisfy the trait bound
|
471 | u64: From<Wit> + From<Power>, Power: std::iter::Sum
| ~~~~~~~~~~~~~~~~~~~~~~~
|
cannot find type `StakingResult` in this scope:
data_structures/src/staking/stakes.rs#L458
error[E0412]: cannot find type `StakingResult` in this scope
--> data_structures/src/staking/stakes.rs:458:6
|
458 | ) -> StakingResult<(), PublicKeyHash, Wit, Epoch>
| ^^^^^^^^^^^^^ help: a type alias with a similar name exists: `StakesResult`
|
::: data_structures/src/staking/helpers.rs:15:1
|
15 | pub type StakesResult<T, Address, Coins, Epoch> = Result<T, StakesError<Address, Coins, Epoch>>;
| ------------------------------------------------------------------------------------------------ similarly named type alias `StakesResult` defined here
|
cannot find type `StakingResult` in this scope:
data_structures/src/staking/stakes.rs#L458
error[E0412]: cannot find type `StakingResult` in this scope
--> data_structures/src/staking/stakes.rs:458:6
|
458 | ) -> StakingResult<(), PublicKeyHash, Wit, Epoch>
| ^^^^^^^^^^^^^ help: a type alias with a similar name exists: `StakesResult`
|
::: data_structures/src/staking/helpers.rs:15:1
|
15 | pub type StakesResult<T, Address, Coins, Epoch> = Result<T, StakesError<Address, Coins, Epoch>>;
| ------------------------------------------------------------------------------------------------ similarly named type alias `StakesResult` defined here
|
build_ubuntu
could not compile `witnet_data_structures` (lib) due to 3 previous errors
|
build_ubuntu
could not compile `witnet_data_structures` (lib test) due to 26 previous errors
|
build_ubuntu
Clippy had exited with the 101 exit code
|
build_ubuntu
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build_ubuntu
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|