Skip to content

launchpad with guaranteed tickets v2 #4

launchpad with guaranteed tickets v2

launchpad with guaranteed tickets v2 #4

GitHub Actions / clippy failed Sep 13, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (1)

launchpad-locked-tokens-and-guaranteed-tickets/tests/locked_tokens_with_guaranteed_tickets_test.rs|17 col 5| error[E0432]: unresolved import launchpad_guaranteed_tickets::guaranteed_ticket_winners
--> launchpad-locked-tokens-and-guaranteed-tickets/tests/locked_tokens_with_guaranteed_tickets_test.rs:17:5
|
17 | guaranteed_ticket_winners::{
| ^^^^^^^^^^^^^^^^^^^^^^^^^ could not find guaranteed_ticket_winners in launchpad_guaranteed_tickets

Filtered Findings (2)

launchpad-guaranteed-tickets/src/guranteed_ticket_winners.rs|46 col 8| error[E0599]: no method named select_guaranteed_tickets found for struct ContractObj in the current scope
--> launchpad-locked-tokens-and-guaranteed-tickets/tests/locked_tokens_with_guaranteed_tickets_test.rs:321:20
|
321 | sc.select_guaranteed_tickets(&mut op);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: /home/runner/work/mx-launchpad-sc/mx-launchpad-sc/launchpad-guaranteed-tickets/src/guranteed_ticket_winners.rs:46:8
|
46 | fn select_guaranteed_tickets(
| ------------------------- the method is available for launchpad_locked_tokens_and_guaranteed_tickets::ContractObj<multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_scenario::api::impl_vh::debug_api::DebugApiBackend>> here
|
= note: the full type name has been written to '/home/runner/work/mx-launchpad-sc/mx-launchpad-sc/target/debug/deps/locked_tokens_with_guaranteed_tickets_test-418c6fe9f59e4ee2.long-type-18218645762240058820.txt'
= note: consider using --verbose to print the full type name to the console
= help: items from traits can only be used if the trait is in scope
help: there is a method total_guaranteed_tickets with a similar name, but with different arguments
--> /home/runner/work/mx-launchpad-sc/mx-launchpad-sc/launchpad-guaranteed-tickets/src/guaranteed_tickets_init.rs:26:1
|
26 | #[multiversx_sc::module]
| ^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the attribute macro multiversx_sc::module (in Nightly builds, run with -Z macro-backtrace for more info)
help: trait GuaranteedTicketWinnersModule which provides select_guaranteed_tickets is implemented but not in scope; perhaps you want to import it
|
3 + use launchpad_guaranteed_tickets::guranteed_ticket_winners::GuaranteedTicketWinnersModule;
|
launchpad-guaranteed-tickets/src/guranteed_ticket_winners.rs|127 col 8| error[E0599]: no method named distribute_leftover_tickets found for struct ContractObj in the current scope
--> launchpad-locked-tokens-and-guaranteed-tickets/tests/locked_tokens_with_guaranteed_tickets_test.rs:337:20
|
337 | sc.distribute_leftover_tickets(&mut op);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: /home/runner/work/mx-launchpad-sc/mx-launchpad-sc/launchpad-guaranteed-tickets/src/guranteed_ticket_winners.rs:127:8
|
127 | fn distribute_leftover_tickets(
| --------------------------- the method is available for launchpad_locked_tokens_and_guaranteed_tickets::ContractObj<multiversx_sc_scenario::api::VMHooksApi<multiversx_sc_scenario::api::impl_vh::debug_api::DebugApiBackend>> here
|
= note: the full type name has been written to '/home/runner/work/mx-launchpad-sc/mx-launchpad-sc/target/debug/deps/locked_tokens_with_guaranteed_tickets_test-418c6fe9f59e4ee2.long-type-18218645762240058820.txt'
= note: consider using --verbose to print the full type name to the console
= help: items from traits can only be used if the trait is in scope
help: there is a method filter_tickets with a similar name, but with different arguments
--> /home/runner/work/mx-launchpad-sc/mx-launchpad-sc/launchpad-common/src/winner_selection.rs:10:1
|
10 | #[multiversx_sc::module]
| ^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the attribute macro multiversx_sc::module (in Nightly builds, run with -Z macro-backtrace for more info)
help: trait GuaranteedTicketWinnersModule which provides distribute_leftover_tickets is implemented but not in scope; perhaps you want to import it
|
3 + use launchpad_guaranteed_tickets::guranteed_ticket_winners::GuaranteedTicketWinnersModule;
|

Annotations

Check failure on line 17 in launchpad-locked-tokens-and-guaranteed-tickets/tests/locked_tokens_with_guaranteed_tickets_test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] launchpad-locked-tokens-and-guaranteed-tickets/tests/locked_tokens_with_guaranteed_tickets_test.rs#L17

error[E0432]: unresolved import `launchpad_guaranteed_tickets::guaranteed_ticket_winners`
  --> launchpad-locked-tokens-and-guaranteed-tickets/tests/locked_tokens_with_guaranteed_tickets_test.rs:17:5
   |
17 |     guaranteed_ticket_winners::{
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `guaranteed_ticket_winners` in `launchpad_guaranteed_tickets`
Raw output
launchpad-locked-tokens-and-guaranteed-tickets/tests/locked_tokens_with_guaranteed_tickets_test.rs:17:5:e:error[E0432]: unresolved import `launchpad_guaranteed_tickets::guaranteed_ticket_winners`
  --> launchpad-locked-tokens-and-guaranteed-tickets/tests/locked_tokens_with_guaranteed_tickets_test.rs:17:5
   |
17 |     guaranteed_ticket_winners::{
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `guaranteed_ticket_winners` in `launchpad_guaranteed_tickets`


__END__