Launchpad with custom unlock schedule #72
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (0)
Filtered Findings (1)
launchpad-guaranteed-tickets/tests/guaranteed_tickets_setup/mod.rs|225 col 21| error[E0061]: this method takes 1 argument but 5 arguments were supplied
--> launchpad-guaranteed-tickets/tests/guaranteed_tickets_setup/mod.rs:223:20
|
223 | sc.set_unlock_schedule(
| ^^^^^^^^^^^^^^^^^^^
224 | claim_start_round,
225 | initial_release_percentage,
| -------------------------- unexpected argument of type u64
226 | vesting_release_times,
| --------------------- unexpected argument of type u64
227 | vesting_release_percentage,
| -------------------------- unexpected argument of type u64
228 | vesting_release_period,
| ---------------------- unexpected argument of type u64
|
note: expected MultiValueEncoded<TxContextRef, ...>
, found u64
--> launchpad-guaranteed-tickets/tests/guaranteed_tickets_setup/mod.rs:224:21
|
224 | claim_start_round,
| ^^^^^^^^^^^^^^^^^
= note: expected struct multiversx_sc::types::MultiValueEncoded<multiversx_sc_scenario::multiversx_chain_vm::tx_mock::TxContextRef, multiversx_sc::multiversx_sc_codec::multi_types::MultiValue2<u64, u64>>
found type u64
note: method defined here
--> /home/runner/work/mx-launchpad-sc/mx-launchpad-sc/launchpad-guaranteed-tickets/src/token_release.rs:28:8
|
28 | fn set_unlock_schedule(&self, vesting_releases: MultiValueEncoded<MultiValue2<u64, u64>>) {
| ^^^^^^^^^^^^^^^^^^^
help: remove the extra arguments
|
224 - claim_start_round,
224 + /* multiversx_sc::types::MultiValueEncoded<multiversx_sc_scenario::multiversx_chain_vm::tx_mock::TxContextRef, multiversx_sc::multiversx_sc_codec::multi_types::MultiValue2<u64, u64>> */,
|