Merge pull request #1070 from multiversx/router-issue-pair-lp-fix #4599
actions.yml
on: push
Contracts
/
Setup Environment
4m 2s
Contracts
/
Rust tests
1m 42s
Contracts
/
Clippy linter check
57s
Contracts
/
Wasm tests
3m 46s
Contracts
/
Interactor tests
0s
Contracts
/
Test Coverage
1m 46s
Annotations
12 warnings
|
[clippy] locked-asset/energy-factory/src/lock_options_endpoints.rs#L61:
locked-asset/energy-factory/src/lock_options_endpoints.rs#L61
warning: consider using `sort_unstable_by_key`
--> locked-asset/energy-factory/src/lock_options_endpoints.rs:61:5
|
61 | lock_options.sort_unstable_by(|first, second| first.lock_epochs.cmp(&second.lock_epochs));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
= note: `#[warn(clippy::unnecessary_sort_by)]` on by default
help: try
|
61 - lock_options.sort_unstable_by(|first, second| first.lock_epochs.cmp(&second.lock_epochs));
61 + lock_options.sort_unstable_by_key(|first| first.lock_epochs);
|
|
|
[clippy] legacy-contracts/factory-legacy/src/locked_asset_token_merge.rs#L129:
legacy-contracts/factory-legacy/src/locked_asset_token_merge.rs#L129
warning: consider using `sort_unstable_by_key`
--> legacy-contracts/factory-legacy/src/locked_asset_token_merge.rs:129:9
|
129 | array.sort_unstable_by(|a, b| a.epoch.cmp(&b.epoch));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
= note: `#[warn(clippy::unnecessary_sort_by)]` on by default
help: try
|
129 - array.sort_unstable_by(|a, b| a.epoch.cmp(&b.epoch));
129 + array.sort_unstable_by_key(|a| a.epoch);
|
|
|
[clippy] energy-integration/governance-v2/tests/gov_test_setup/mod.rs#L84:
energy-integration/governance-v2/tests/gov_test_setup/mod.rs#L84
warning: the borrowed expression implements the required traits
--> energy-integration/governance-v2/tests/gov_test_setup/mod.rs:84:26
|
84 | .set(&Energy::new(
| __________________________^
85 | | BigInt::from(managed_biguint!(USER_ENERGY)),
86 | | 0,
87 | | managed_biguint!(0),
88 | | ));
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
help: change this to
|
84 ~ .set(Energy::new(
85 + BigInt::from(managed_biguint!(USER_ENERGY)),
86 + 0,
87 + managed_biguint!(0),
88 ~ ));
|
|
|
[clippy] energy-integration/governance-v2/tests/gov_test_setup/mod.rs#L90:
energy-integration/governance-v2/tests/gov_test_setup/mod.rs#L90
warning: the borrowed expression implements the required traits
--> energy-integration/governance-v2/tests/gov_test_setup/mod.rs:90:26
|
90 | .set(&Energy::new(
| __________________________^
91 | | BigInt::from(managed_biguint!(USER_ENERGY)),
92 | | 0,
93 | | managed_biguint!(0),
94 | | ));
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#needless_borrows_for_generic_args
help: change this to
|
90 ~ .set(Energy::new(
91 + BigInt::from(managed_biguint!(USER_ENERGY)),
92 + 0,
93 + managed_biguint!(0),
94 ~ ));
|
|
|
[clippy] energy-integration/governance-v2/tests/gov_test_setup/mod.rs#L96:
energy-integration/governance-v2/tests/gov_test_setup/mod.rs#L96
warning: the borrowed expression implements the required traits
--> energy-integration/governance-v2/tests/gov_test_setup/mod.rs:96:26
|
96 | .set(&Energy::new(
| __________________________^
97 | | BigInt::from(managed_biguint!(USER_ENERGY + 210_000)),
98 | | 0,
99 | | managed_biguint!(0),
100 | | ));
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#needless_borrows_for_generic_args
help: change this to
|
96 ~ .set(Energy::new(
97 + BigInt::from(managed_biguint!(USER_ENERGY + 210_000)),
98 + 0,
99 + managed_biguint!(0),
100 ~ ));
|
|
|
[clippy] energy-integration/governance-v2/tests/gov_test_setup/mod.rs#L102:
energy-integration/governance-v2/tests/gov_test_setup/mod.rs#L102
warning: the borrowed expression implements the required traits
--> energy-integration/governance-v2/tests/gov_test_setup/mod.rs:102:26
|
102 | .set(&Energy::new(
| __________________________^
103 | | BigInt::from(managed_biguint!(0)),
104 | | 0,
105 | | managed_biguint!(0),
106 | | ));
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#needless_borrows_for_generic_args
help: change this to
|
102 ~ .set(Energy::new(
103 + BigInt::from(managed_biguint!(0)),
104 + 0,
105 + managed_biguint!(0),
106 ~ ));
|
|
|
[clippy] legacy-contracts/factory-legacy/src/locked_asset_token_merge.rs#L129:
legacy-contracts/factory-legacy/src/locked_asset_token_merge.rs#L129
warning: consider using `sort_unstable_by_key`
--> legacy-contracts/factory-legacy/src/locked_asset_token_merge.rs:129:9
|
129 | array.sort_unstable_by(|a, b| a.epoch.cmp(&b.epoch));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
= note: `#[warn(clippy::unnecessary_sort_by)]` on by default
help: try
|
129 - array.sort_unstable_by(|a, b| a.epoch.cmp(&b.epoch));
129 + array.sort_unstable_by_key(|a| a.epoch);
|
|
|
[clippy] locked-asset/energy-factory/src/lock_options_endpoints.rs#L61:
locked-asset/energy-factory/src/lock_options_endpoints.rs#L61
warning: consider using `sort_unstable_by_key`
--> locked-asset/energy-factory/src/lock_options_endpoints.rs:61:5
|
61 | lock_options.sort_unstable_by(|first, second| first.lock_epochs.cmp(&second.lock_epochs));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
= note: `#[warn(clippy::unnecessary_sort_by)]` on by default
help: try
|
61 - lock_options.sort_unstable_by(|first, second| first.lock_epochs.cmp(&second.lock_epochs));
61 + lock_options.sort_unstable_by_key(|first| first.lock_epochs);
|
|
|
Contracts / Clippy linter check
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: giraffate/clippy-action@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Contracts / Setup Environment
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/upload-artifact@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Contracts / Test Coverage
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/download-artifact@v4, actions/upload-artifact@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Contracts / Wasm tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/download-artifact@v6, actions/upload-artifact@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
coverage
|
4.9 KB |
sha256:f6ae6a086982f6f66a891cecd1d93f2e8ab0d61d0b1bf054dd417a494594f919
|
|
|
mx-scenario-go
Expired
|
12.7 MB |
sha256:9311ec4ca3523ba133730d41e4e6f92fba5db52d9f5f928606f3c310c67cbd69
|
|
|
report
|
688 Bytes |
sha256:6933b2e127a7abe75023ba9f386046e6ae868e8e305b2a444c74fd59a0efd7c5
|
|
|
sc-meta
Expired
|
16 MB |
sha256:dacb57a19f8c56d56bc47d6978af971c4c90cf13f17a2c7391a0ef6bb5d6628a
|
|