Skip to content

Suggested fix for ReturnsNewTokenIdentifier #2166

Suggested fix for ReturnsNewTokenIdentifier

Suggested fix for ReturnsNewTokenIdentifier #2166

GitHub Actions / clippy failed Aug 29, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (10)

contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs|239 col 13| warning: unused variable: egld_amount
--> contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs:239:13
|
239 | let egld_amount = BigUint::::from(50000000000000000u128);
| ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _egld_amount
|
= note: #[warn(unused_variables)] on by default
contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs|64 col 1| warning: methods last_error_message and send_egld are never used
--> contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs:224:14
|
64 | impl ProxyTestInteract {
| ---------------------- methods in this implementation
...
224 | async fn last_error_message(&mut self) {
| ^^^^^^^^^^^^^^^^^^
...
294 | async fn send_egld(&mut self) {
| ^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs|64 col 1| warning: methods last_error_message and send_egld are never used
--> contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs:224:14
|
64 | impl ProxyTestInteract {
| ---------------------- methods in this implementation
...
224 | async fn last_error_message(&mut self) {
| ^^^^^^^^^^^^^^^^^^
...
294 | async fn send_egld(&mut self) {
| ^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs|239 col 13| warning: unused variable: egld_amount
--> contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs:239:13
|
239 | let egld_amount = BigUint::::from(50000000000000000u128);
| ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _egld_amount
|
= note: #[warn(unused_variables)] on by default
contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs|25 col 10| warning: use of deprecated method multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_deploy: Please use method whitebox, as part of the unified transaction syntax.
--> contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:25:10
|
25 | .whitebox_deploy(
| ^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs|32 col 10| warning: use of deprecated method multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_query: Please use method whitebox, as part of the unified transaction syntax.
--> contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:32:10
|
32 | .whitebox_query(&adder_whitebox, |sc| {
| ^^^^^^^^^^^^^^
contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs|36 col 10| warning: use of deprecated method multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_call: Please use method whitebox, as part of the unified transaction syntax.
--> contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:36:10
|
36 | .whitebox_call(
| ^^^^^^^^^^^^^
contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs|25 col 10| warning: use of deprecated method multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_deploy: Please use method whitebox, as part of the unified transaction syntax.
--> contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:25:10
|
25 | .whitebox_deploy(
| ^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs|32 col 10| warning: use of deprecated method multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_query: Please use method whitebox, as part of the unified transaction syntax.
--> contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:32:10
|
32 | .whitebox_query(&adder_whitebox, |sc| {
| ^^^^^^^^^^^^^^
contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs|36 col 10| warning: use of deprecated method multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_call: Please use method whitebox, as part of the unified transaction syntax.
--> contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:36:10
|
36 | .whitebox_call(
| ^^^^^^^^^^^^^

Filtered Findings (0)

Annotations

Check warning on line 239 in contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs#L239

warning: unused variable: `egld_amount`
   --> contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs:239:13
    |
239 |         let egld_amount = BigUint::<StaticApi>::from(50000000000000000u128);
    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_egld_amount`
    |
    = note: `#[warn(unused_variables)]` on by default
Raw output
contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs:239:13:w:warning: unused variable: `egld_amount`
   --> contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs:239:13
    |
239 |         let egld_amount = BigUint::<StaticApi>::from(50000000000000000u128);
    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_egld_amount`
    |
    = note: `#[warn(unused_variables)]` on by default


__END__

Check warning on line 64 in contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs#L64

warning: methods `last_error_message` and `send_egld` are never used
   --> contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs:224:14
    |
64  | impl ProxyTestInteract {
    | ---------------------- methods in this implementation
...
224 |     async fn last_error_message(&mut self) {
    |              ^^^^^^^^^^^^^^^^^^
...
294 |     async fn send_egld(&mut self) {
    |              ^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default
Raw output
contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs:64:1:w:warning: methods `last_error_message` and `send_egld` are never used
   --> contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs:224:14
    |
64  | impl ProxyTestInteract {
    | ---------------------- methods in this implementation
...
224 |     async fn last_error_message(&mut self) {
    |              ^^^^^^^^^^^^^^^^^^
...
294 |     async fn send_egld(&mut self) {
    |              ^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default


__END__

Check warning on line 64 in contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs#L64

warning: methods `last_error_message` and `send_egld` are never used
   --> contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs:224:14
    |
64  | impl ProxyTestInteract {
    | ---------------------- methods in this implementation
...
224 |     async fn last_error_message(&mut self) {
    |              ^^^^^^^^^^^^^^^^^^
...
294 |     async fn send_egld(&mut self) {
    |              ^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default
Raw output
contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs:64:1:w:warning: methods `last_error_message` and `send_egld` are never used
   --> contracts/examples/token-identifier-test/proxy-test/interact/src/basic_interact.rs:224:14
    |
64  | impl ProxyTestInteract {
    | ---------------------- methods in this implementation
...
224 |     async fn last_error_message(&mut self) {
    |              ^^^^^^^^^^^^^^^^^^
...
294 |     async fn send_egld(&mut self) {
    |              ^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default


__END__

Check warning on line 239 in contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs#L239

warning: unused variable: `egld_amount`
   --> contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs:239:13
    |
239 |         let egld_amount = BigUint::<StaticApi>::from(50000000000000000u128);
    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_egld_amount`
    |
    = note: `#[warn(unused_variables)]` on by default
Raw output
contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs:239:13:w:warning: unused variable: `egld_amount`
   --> contracts/examples/token-identifier-test/returns-token-identifier-test/interact/src/basic_interact.rs:239:13
    |
239 |         let egld_amount = BigUint::<StaticApi>::from(50000000000000000u128);
    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_egld_amount`
    |
    = note: `#[warn(unused_variables)]` on by default


__END__

Check warning on line 25 in contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs#L25

warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_deploy`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:25:10
   |
25 |         .whitebox_deploy(
   |          ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default
Raw output
contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:25:10:w:warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_deploy`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:25:10
   |
25 |         .whitebox_deploy(
   |          ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default


__END__

Check warning on line 32 in contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs#L32

warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_query`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:32:10
   |
32 |         .whitebox_query(&adder_whitebox, |sc| {
   |          ^^^^^^^^^^^^^^
Raw output
contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:32:10:w:warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_query`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:32:10
   |
32 |         .whitebox_query(&adder_whitebox, |sc| {
   |          ^^^^^^^^^^^^^^


__END__

Check warning on line 36 in contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs#L36

warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_call`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:36:10
   |
36 |         .whitebox_call(
   |          ^^^^^^^^^^^^^
Raw output
contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:36:10:w:warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_call`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/proxy-test/tests/proxy_test_whitebox_test.rs:36:10
   |
36 |         .whitebox_call(
   |          ^^^^^^^^^^^^^


__END__

Check warning on line 25 in contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs#L25

warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_deploy`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:25:10
   |
25 |         .whitebox_deploy(
   |          ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default
Raw output
contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:25:10:w:warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_deploy`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:25:10
   |
25 |         .whitebox_deploy(
   |          ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default


__END__

Check warning on line 32 in contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs#L32

warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_query`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:32:10
   |
32 |         .whitebox_query(&adder_whitebox, |sc| {
   |          ^^^^^^^^^^^^^^
Raw output
contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:32:10:w:warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_query`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:32:10
   |
32 |         .whitebox_query(&adder_whitebox, |sc| {
   |          ^^^^^^^^^^^^^^


__END__

Check warning on line 36 in contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs#L36

warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_call`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:36:10
   |
36 |         .whitebox_call(
   |          ^^^^^^^^^^^^^
Raw output
contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:36:10:w:warning: use of deprecated method `multiversx_sc_scenario::facade::scenario_world_whitebox::<impl multiversx_sc_scenario::ScenarioWorld>::whitebox_call`: Please use method `whitebox`, as part of the unified transaction syntax.
  --> contracts/examples/token-identifier-test/returns-token-identifier-test/tests/returns_token_identifier_test_whitebox_test.rs:36:10
   |
36 |         .whitebox_call(
   |          ^^^^^^^^^^^^^


__END__