Contracts upgrade 0.54.0 (3) #533
on_pull_request_build_contracts.yml
on: pull_request
build
/
build
3m 31s
Annotations
5 warnings
[clippy] contracts/paymaster/tests/paymaster_blackbox_test.rs#L287:
contracts/paymaster/tests/paymaster_blackbox_test.rs#L287
warning: calls to `push` immediately after creation
--> contracts/paymaster/tests/paymaster_blackbox_test.rs:287:5
|
287 | / let mut payments = Vec::new();
288 | | payments.push(TestEsdtTransfer(FEE_TOKEN_ID_EXPR, 0, FEE_AMOUNT));
289 | | payments.push(TestEsdtTransfer(WEGLD_TOKEN_ID_EXPR, 0, FEE_AMOUNT));
| |________________________________________________________________________^ help: consider using the `vec![]` macro: `let payments = vec![..];`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push
= note: `#[warn(clippy::vec_init_then_push)]` on by default
|
[clippy] contracts/paymaster/tests/paymaster_blackbox_test.rs#L328:
contracts/paymaster/tests/paymaster_blackbox_test.rs#L328
warning: calls to `push` immediately after creation
--> contracts/paymaster/tests/paymaster_blackbox_test.rs:328:5
|
328 | / let mut payments = Vec::new();
329 | | payments.push(TestEsdtTransfer(FEE_TOKEN_ID_EXPR, 0, FEE_AMOUNT));
330 | | payments.push(TestEsdtTransfer(WEGLD_TOKEN_ID_EXPR, 0, failling_amount));
| |_____________________________________________________________________________^ help: consider using the `vec![]` macro: `let payments = vec![..];`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push
|
[clippy] contracts/rewards-distribution/tests/compute_brackets_whitebox_test.rs#L38:
contracts/rewards-distribution/tests/compute_brackets_whitebox_test.rs#L38
warning: useless conversion to the same type: `multiversx_sc_scenario::imports::ManagedVec<multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_scenario::api::impl_vh::debug_api::DebugApiBackend>, rewards_distribution::Bracket>`
--> contracts/rewards-distribution/tests/compute_brackets_whitebox_test.rs:38:59
|
38 | let brackets: ManagedVec<DebugApi, Bracket> = utils::to_brackets(&[
| ___________________________________________________________^
39 | | (10, 2_000),
40 | | (90, 6_000),
41 | | (400, 7_000),
... |
45 | | ])
46 | | .into();
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
help: consider removing `.into()`
|
38 ~ let brackets: ManagedVec<DebugApi, Bracket> = utils::to_brackets(&[
39 + (10, 2_000),
40 + (90, 6_000),
41 + (400, 7_000),
42 + (2_500, 10_000),
43 + (25_000, 35_000),
44 + (72_000, 40_000),
45 ~ ]);
|
|
build / build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "build-output".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
build-output
|
69.1 MB |
|