Fix init arguments #412
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (0)
Filtered Findings (49)
multisig/tests/scenario_go_test.rs|3 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multisig/tests/scenario_go_test.rs:3:29
|
3 | multiversx_sc_scenario::run_go("mandos/create_elrond_to_ethereum_tx_batch.scen.json");
| ^^^^^^
|
= note: #[warn(deprecated)]
on by default
multisig/tests/scenario_go_test.rs|8 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multisig/tests/scenario_go_test.rs:8:29
|
8 | multiversx_sc_scenario::run_go("mandos/ethereum_to_elrond_tx_batch_ok.scen.json");
| ^^^^^^
multisig/tests/scenario_go_test.rs|13 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multisig/tests/scenario_go_test.rs:13:29
|
13 | multiversx_sc_scenario::run_go("mandos/ethereum_to_elrond_tx_batch_rejected.scen.json");
| ^^^^^^
multisig/tests/scenario_go_test.rs|18 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multisig/tests/scenario_go_test.rs:18:29
|
18 | multiversx_sc_scenario::run_go("mandos/execute_elrond_to_ethereum_tx_batch.scen.json");
| ^^^^^^
multisig/tests/scenario_go_test.rs|23 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multisig/tests/scenario_go_test.rs:23:29
|
23 | multiversx_sc_scenario::run_go("mandos/get_empty_batch.scen.json");
| ^^^^^^
multisig/tests/scenario_go_test.rs|28 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multisig/tests/scenario_go_test.rs:28:29
|
28 | multiversx_sc_scenario::run_go("mandos/reject_elrond_to_ethereum_tx_batch.scen.json");
| ^^^^^^
multisig/tests/scenario_go_test.rs|33 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multisig/tests/scenario_go_test.rs:33:29
|
33 | multiversx_sc_scenario::run_go("mandos/setup.scen.json");
| ^^^^^^
multisig/tests/scenario_go_test.rs|38 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multisig/tests/scenario_go_test.rs:38:29
|
38 | multiversx_sc_scenario::run_go("mandos/unstake.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|3 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:3:29
|
3 | multiversx_sc_scenario::run_go("mandos/distribute_fees.scen.json");
| ^^^^^^
|
= note: #[warn(deprecated)]
on by default
esdt-safe/tests/scenario_go_test.rs|8 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:8:29
|
8 | multiversx_sc_scenario::run_go("mandos/create_another_tx_ok.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|13 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:13:29
|
13 | multiversx_sc_scenario::run_go("mandos/create_another_tx_too_late_for_batch.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|18 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:18:29
|
18 | multiversx_sc_scenario::run_go("mandos/create_transaction_ok.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|23 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:23:29
|
23 | multiversx_sc_scenario::run_go("mandos/execute_batch_both_rejected.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|28 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:28:29
|
28 | multiversx_sc_scenario::run_go("mandos/execute_batch_both_success.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|33 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:33:29
|
33 | multiversx_sc_scenario::run_go("mandos/execute_batch_one_success_one_rejected.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|38 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:38:29
|
38 | multiversx_sc_scenario::run_go("mandos/execute_transaction_rejected.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|43 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:43:29
|
43 | multiversx_sc_scenario::run_go("mandos/execute_transaction_success.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|48 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:48:29
|
48 | multiversx_sc_scenario::run_go("mandos/get_next_pending_tx.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|53 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:53:29
|
53 | multiversx_sc_scenario::run_go("mandos/get_next_tx_batch.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|58 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:58:29
|
58 | multiversx_sc_scenario::run_go("mandos/get_next_tx_batch_too_early.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|63 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:63:29
|
63 | multiversx_sc_scenario::run_go("mandos/setup_accounts.scen.json");
| ^^^^^^
esdt-safe/tests/scenario_go_test.rs|68 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> esdt-safe/tests/scenario_go_test.rs:68:29
|
68 | multiversx_sc_scenario::run_go("mandos/zero_fees.scen.json");
| ^^^^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|3 col 61| warning: use of deprecated module multiversx_sc_scenario::whitebox_legacy
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:3:61
|
3 | use multiversx_sc_scenario::{managed_address, rust_biguint, testing_framework::*, DebugApi};
| ^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)]
on by default
bridge-proxy/tests/bridge_proxy_rust_test.rs|11 col 29| warning: use of deprecated struct multiversx_sc_scenario::whitebox_legacy::BlockchainStateWrapper
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:11:29
|
11 | pub blockchain_wrapper: BlockchainStateWrapper,
| ^^^^^^^^^^^^^^^^^^^^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|14 col 9| warning: use of deprecated struct multiversx_sc_scenario::whitebox_legacy::ContractObjWrapper
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:14:9
|
14 | ContractObjWrapper<bridge_proxy::ContractObj, BridgeProxyObjBuilder>,
| ^^^^^^^^^^^^^^^^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|24 col 34| warning: use of deprecated struct multiversx_sc_scenario::whitebox_legacy::BlockchainStateWrapper
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:24:34
|
24 | let mut blockchain_wrapper = BlockchainStateWrapper::new();
| ^^^^^^^^^^^^^^^^^^^^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|24 col 58| warning: use of deprecated associated function multiversx_sc_scenario::whitebox_legacy::BlockchainStateWrapper::new
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:24:58
|
24 | let mut blockchain_wrapper = BlockchainStateWrapper::new();
| ^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|25 col 44| warning: use of deprecated method multiversx_sc_scenario::whitebox_legacy::BlockchainStateWrapper::create_user_account
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:25:44
|
25 | let owner_address = blockchain_wrapper.create_user_account(&rust_zero);
| ^^^^^^^^^^^^^^^^^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|26 col 51| warning: use of deprecated method multiversx_sc_scenario::whitebox_legacy::BlockchainStateWrapper::create_sc_account
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:26:51
|
26 | let bridge_proxy_wrapper = blockchain_wrapper.create_sc_account(
| ^^^^^^^^^^^^^^^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|34 col 10| warning: use of deprecated method multiversx_sc_scenario::whitebox_legacy::BlockchainStateWrapper::execute_tx
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:34:10
|
34 | .execute_tx(&owner_address, &bridge_proxy_wrapper, &rust_zero, |sc| {
| ^^^^^^^^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|39 col 24| warning: use of deprecated method multiversx_sc_scenario::whitebox_legacy::BlockchainStateWrapper::add_mandos_set_account
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:39:24
|
39 | blockchain_wrapper.add_mandos_set_account(bridge_proxy_wrapper.address_ref());
| ^^^^^^^^^^^^^^^^^^^^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|39 col 68| warning: use of deprecated method multiversx_sc_scenario::whitebox_legacy::ContractObjWrapper::<CB, ContractObjBuilder>::address_ref
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:39:68
|
39 | blockchain_wrapper.add_mandos_set_account(bridge_proxy_wrapper.address_ref());
| ^^^^^^^^^^^
bridge-proxy/tests/bridge_proxy_rust_test.rs|55 col 10| warning: use of deprecated method multiversx_sc_scenario::whitebox_legacy::BlockchainStateWrapper::execute_tx
: Use the blackbox testing framework instead. If needed, it also supports whitebox calls.
--> bridge-proxy/tests/bridge_proxy_rust_test.rs:55:10
|
55 | .execute_tx(
| ^^^^^^^^^^
multi-transfer-esdt/tests/scenario_go_test.rs|3 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multi-transfer-esdt/tests/scenario_go_test.rs:3:29
|
3 | multiversx_sc_scenario::run_go("mandos/batch_transfer_both_executed.scen.json");
| ^^^^^^
|
= note: #[warn(deprecated)]
on by default
multi-transfer-esdt/tests/scenario_go_test.rs|8 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multi-transfer-esdt/tests/scenario_go_test.rs:8:29
|
8 | multiversx_sc_scenario::run_go("mandos/batch_transfer_both_failed.scen.json");
| ^^^^^^
multi-transfer-esdt/tests/scenario_go_test.rs|13 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multi-transfer-esdt/tests/scenario_go_test.rs:13:29
|
13 | multiversx_sc_scenario::run_go("mandos/batch_transfer_one_executed_one_failed.scen.json");
| ^^^^^^
multi-transfer-esdt/tests/scenario_go_test.rs|18 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multi-transfer-esdt/tests/scenario_go_test.rs:18:29
|
18 | multiversx_sc_scenario::run_go("mandos/batch_transfer_to_frozen_account.scen.json");
| ^^^^^^
multi-transfer-esdt/tests/scenario_go_test.rs|23 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multi-transfer-esdt/tests/scenario_go_test.rs:23:29
|
23 | multiversx_sc_scenario::run_go("mandos/setup_accounts.scen.json");
| ^^^^^^
multi-transfer-esdt/tests/scenario_go_test.rs|28 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multi-transfer-esdt/tests/scenario_go_test.rs:28:29
|
28 | multiversx_sc_scenario::run_go("mandos/transfer_ok.scen.json");
| ^^^^^^
multi-transfer-esdt/tests/scenario_go_test.rs|33 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> multi-transfer-esdt/tests/scenario_go_test.rs:33:29
|
33 | multiversx_sc_scenario::run_go("mandos/two_transfers_same_token.scen.json");
| ^^^^^^
bridged-tokens-wrapper/tests/dfp_big_uint_test.rs|15 col 22| warning: redundant clone
--> bridged-tokens-wrapper/tests/dfp_big_uint_test.rs:15:22
|
15 | assert!(converted.clone().convert(5).to_raw() == 12345u64);
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> bridged-tokens-wrapper/tests/dfp_big_uint_test.rs:15:13
|
15 | assert!(converted.clone().convert(5).to_raw() == 12345u64);
| ^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)]
on by default
bridged-tokens-wrapper/tests/dfp_big_uint_test.rs|7 col 5| warning: this let-binding has unit value
--> bridged-tokens-wrapper/tests/dfp_big_uint_test.rs:7:5
|
7 | let _ = DebugApi::dummy();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the let
binding: DebugApi::dummy();
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: #[warn(clippy::let_unit_value)]
on by default
bridged-tokens-wrapper/tests/dfp_big_uint_test.rs|20 col 5| warning: this let-binding has unit value
--> bridged-tokens-wrapper/tests/dfp_big_uint_test.rs:20:5
|
20 | let _ = DebugApi::dummy();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the let
binding: DebugApi::dummy();
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
bridged-tokens-wrapper/tests/scenario_go_test.rs|3 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> bridged-tokens-wrapper/tests/scenario_go_test.rs:3:29
|
3 | multiversx_sc_scenario::run_go("mandos/unwrap_token.scen.json");
| ^^^^^^
|
= note: #[warn(deprecated)]
on by default
bridged-tokens-wrapper/tests/scenario_go_test.rs|8 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> bridged-tokens-wrapper/tests/scenario_go_test.rs:8:29
|
8 | multiversx_sc_scenario::run_go("mandos/wrap_token.scen.json");
| ^^^^^^
bridged-tokens-wrapper/tests/scenario_go_test.rs|13 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> bridged-tokens-wrapper/tests/scenario_go_test.rs:13:29
|
13 | multiversx_sc_scenario::run_go("mandos/whitelist_token.scen.json");
| ^^^^^^
bridged-tokens-wrapper/tests/scenario_go_test.rs|18 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> bridged-tokens-wrapper/tests/scenario_go_test.rs:18:29
|
18 | multiversx_sc_scenario::run_go("mandos/blacklist_token.scen.json");
| ^^^^^^
bridged-tokens-wrapper/tests/scenario_go_test.rs|23 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> bridged-tokens-wrapper/tests/scenario_go_test.rs:23:29
|
23 | multiversx_sc_scenario::run_go("mandos/add_wrapped_token.scen.json");
| ^^^^^^
bridged-tokens-wrapper/tests/scenario_go_test.rs|28 col 29| warning: use of deprecated function multiversx_sc_scenario::run_go
: Call sc-meta test-gen
in the project folder to automatically upgrade all scenario tests.
--> bridged-tokens-wrapper/tests/scenario_go_test.rs:28:29
|
28 | multiversx_sc_scenario::run_go("mandos/remove_wrapped_token.scen.json");
| ^^^^^^