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 cairo test #160

Merged
merged 5 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions onchain/cairo/.snfoundry_cache/.prev_tests_failed
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
afk::social::deposit::tests::deposit_claim
afk::social::deposit::tests::claim_incorrect_gas_amount
afk::social::deposit::tests::deposit_claim_gas_fee
afk::tests::launchpad_tests::launchpad_tests::launchpad_integration
afk::tests::vault_tests::vault_test::test_mint_by_token
5 changes: 3 additions & 2 deletions onchain/cairo/src/launchpad/launchpad.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub trait ILaunchpadMarketplace<TContractState> {
}

#[starknet::contract]
mod LaunchpadMarketplace {
pub mod LaunchpadMarketplace {
use afk::interfaces::jediswap::{
IJediswapFactoryV2, IJediswapFactoryV2Dispatcher, IJediswapFactoryV2DispatcherTrait,
IJediswapNFTRouterV2, IJediswapNFTRouterV2Dispatcher, IJediswapNFTRouterV2DispatcherTrait,
Expand Down Expand Up @@ -191,7 +191,7 @@ mod LaunchpadMarketplace {

#[event]
#[derive(Drop, starknet::Event)]
enum Event {
pub enum Event {
StoredName: StoredName,
BuyToken: BuyToken,
SellToken: SellToken,
Expand Down Expand Up @@ -331,6 +331,7 @@ mod LaunchpadMarketplace {
fn set_exchanges_address(
ref self: ContractState, exchanges: Span<(SupportedExchanges, ContractAddress)>
) {
self.accesscontrol.assert_only_role(ADMIN_ROLE);
let mut dex = exchanges;
// Add Exchanges configurations
loop {
Expand Down
2 changes: 1 addition & 1 deletion onchain/cairo/src/pixel/art_peace.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub mod ArtPeace {
daily_quests_count: u32,
devmode: bool,
) {
let caller= starknet::get_caller_address();
let caller = starknet::get_caller_address();
self.host.write(caller);

self.canvas_width.write(canvas_width);
Expand Down
Loading
Loading