Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launchpad with custom unlock schedule #72

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Launchpad with custom unlock schedule

3876b63
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

Launchpad with custom unlock schedule #72

Launchpad with custom unlock schedule
3876b63
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Jun 10, 2024 in 0s

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>> */,
|