reviewdog [clippy] report
reported by reviewdog 🐶
Findings (4)
contracts/potlock/src/potlock_interactions.rs|26 col 50| error[E0425]: cannot find value payment_for_adding_pot
in this scope
--> contracts/potlock/src/potlock_interactions.rs:26:50
|
26 | self.fee_token_identifier().get() == payment_for_adding_pot.token_identifier,
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
contracts/potlock/src/potlock_interactions.rs|30 col 40| error[E0425]: cannot find value payment_for_adding_pot
in this scope
--> contracts/potlock/src/potlock_interactions.rs:30:40
|
30 | self.fee_amount().get() == payment_for_adding_pot.amount,
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
contracts/potlock/src/potlock_interactions.rs|1 col 5| warning: unused import: __wasm__endpoints__::fee_payment
--> contracts/potlock/src/potlock_interactions.rs:1:5
|
1 | use wasm__endpoints::fee_payment;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)]
on by default
contracts/potlock/src/potlock_storage.rs|75 col 1| error[E0618]: expected function, found multiversx_sc::types::EsdtTokenPayment<<Self as multiversx_sc::contract_base::ContractBase>::Api>
--> contracts/potlock/src/potlock_interactions.rs:22:13
|
19 | let fee_payment = self.call_value().single_esdt();
| ----------- fee_payment
has type multiversx_sc::types::EsdtTokenPayment<<Self as multiversx_sc::contract_base::ContractBase>::Api>
...
22 | fee_payment().get() == fee_payment,
| ^^^^^^^^^^^--
| |
| call expression requires function
|
::: contracts/potlock/src/potlock_storage.rs:75:1
|
75 | #[multiversx_sc::module]
| ------------------------ this function of the same name is available here, but it's shadowed by the local binding
Filtered Findings (0)
Annotations
Check failure on line 26 in contracts/potlock/src/potlock_interactions.rs
github-actions / clippy
[clippy] contracts/potlock/src/potlock_interactions.rs#L26
error[E0425]: cannot find value `payment_for_adding_pot` in this scope
--> contracts/potlock/src/potlock_interactions.rs:26:50
|
26 | self.fee_token_identifier().get() == payment_for_adding_pot.token_identifier,
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
Raw output
contracts/potlock/src/potlock_interactions.rs:26:50:e:error[E0425]: cannot find value `payment_for_adding_pot` in this scope
--> contracts/potlock/src/potlock_interactions.rs:26:50
|
26 | self.fee_token_identifier().get() == payment_for_adding_pot.token_identifier,
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
__END__
Check failure on line 30 in contracts/potlock/src/potlock_interactions.rs
github-actions / clippy
[clippy] contracts/potlock/src/potlock_interactions.rs#L30
error[E0425]: cannot find value `payment_for_adding_pot` in this scope
--> contracts/potlock/src/potlock_interactions.rs:30:40
|
30 | self.fee_amount().get() == payment_for_adding_pot.amount,
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
Raw output
contracts/potlock/src/potlock_interactions.rs:30:40:e:error[E0425]: cannot find value `payment_for_adding_pot` in this scope
--> contracts/potlock/src/potlock_interactions.rs:30:40
|
30 | self.fee_amount().get() == payment_for_adding_pot.amount,
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
__END__
Check warning on line 1 in contracts/potlock/src/potlock_interactions.rs
github-actions / clippy
[clippy] contracts/potlock/src/potlock_interactions.rs#L1
warning: unused import: `__wasm__endpoints__::fee_payment`
--> contracts/potlock/src/potlock_interactions.rs:1:5
|
1 | use __wasm__endpoints__::fee_payment;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Raw output
contracts/potlock/src/potlock_interactions.rs:1:5:w:warning: unused import: `__wasm__endpoints__::fee_payment`
--> contracts/potlock/src/potlock_interactions.rs:1:5
|
1 | use __wasm__endpoints__::fee_payment;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
__END__
Check failure on line 75 in contracts/potlock/src/potlock_storage.rs
github-actions / clippy
[clippy] contracts/potlock/src/potlock_storage.rs#L75
error[E0618]: expected function, found `multiversx_sc::types::EsdtTokenPayment<<Self as multiversx_sc::contract_base::ContractBase>::Api>`
--> contracts/potlock/src/potlock_interactions.rs:22:13
|
19 | let fee_payment = self.call_value().single_esdt();
| ----------- `fee_payment` has type `multiversx_sc::types::EsdtTokenPayment<<Self as multiversx_sc::contract_base::ContractBase>::Api>`
...
22 | fee_payment().get() == fee_payment,
| ^^^^^^^^^^^--
| |
| call expression requires function
|
::: contracts/potlock/src/potlock_storage.rs:75:1
|
75 | #[multiversx_sc::module]
| ------------------------ this function of the same name is available here, but it's shadowed by the local binding
Raw output
contracts/potlock/src/potlock_storage.rs:75:1:e:error[E0618]: expected function, found `multiversx_sc::types::EsdtTokenPayment<<Self as multiversx_sc::contract_base::ContractBase>::Api>`
--> contracts/potlock/src/potlock_interactions.rs:22:13
|
19 | let fee_payment = self.call_value().single_esdt();
| ----------- `fee_payment` has type `multiversx_sc::types::EsdtTokenPayment<<Self as multiversx_sc::contract_base::ContractBase>::Api>`
...
22 | fee_payment().get() == fee_payment,
| ^^^^^^^^^^^--
| |
| call expression requires function
|
::: contracts/potlock/src/potlock_storage.rs:75:1
|
75 | #[multiversx_sc::module]
| ------------------------ this function of the same name is available here, but it's shadowed by the local binding
__END__