dApp staking v3 - PR3 #1273
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
base_checks.yaml
on: push
clean-up-actions
3s
compile-and-check
1h 28m
Annotations
7 errors
variable does not need to be mutable:
pallets/dapp-staking-v3/src/lib.rs#L588
error: variable does not need to be mutable
--> pallets/dapp-staking-v3/src/lib.rs:588:17
|
588 | let mut ledger = Ledger::<T>::get(&account);
| ----^^^^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
|
unused variable: `amount`:
pallets/dapp-staking-v3/src/lib.rs#L603
error: unused variable: `amount`
--> pallets/dapp-staking-v3/src/lib.rs:603:32
|
603 | #[pallet::compact] amount: Balance,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount`
|
unused variable: `smart_contract`:
pallets/dapp-staking-v3/src/lib.rs#L602
error: unused variable: `smart_contract`
--> pallets/dapp-staking-v3/src/lib.rs:602:13
|
602 | smart_contract: T::SmartContract,
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_smart_contract`
|
unused variable: `origin`:
pallets/dapp-staking-v3/src/lib.rs#L601
error: unused variable: `origin`
--> pallets/dapp-staking-v3/src/lib.rs:601:13
|
601 | origin: OriginFor<T>,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin`
|
unused variable: `ledger`:
pallets/dapp-staking-v3/src/lib.rs#L588
error: unused variable: `ledger`
--> pallets/dapp-staking-v3/src/lib.rs:588:21
|
588 | let mut ledger = Ledger::<T>::get(&account);
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ledger`
|
unused variable: `protocol_state`:
pallets/dapp-staking-v3/src/lib.rs#L587
error: unused variable: `protocol_state`
--> pallets/dapp-staking-v3/src/lib.rs:587:17
|
587 | let protocol_state = ActiveProtocolState::<T>::get();
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protocol_state`
|
unused variable: `amount`:
pallets/dapp-staking-v3/src/lib.rs#L577
error: unused variable: `amount`
--> pallets/dapp-staking-v3/src/lib.rs:577:32
|
577 | #[pallet::compact] amount: Balance,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount`
|
= note: `-D unused-variables` implied by `-D warnings`
|