Skip to content

Commit 5ba85ec

Browse files
committed
fix trait
1 parent 3f4c5fb commit 5ba85ec

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

packages/metagame/src/ticket_booth/ticket_booth_component.cairo

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ pub mod TicketBoothComponent {
7070
to: ContractAddress,
7171
soulbound: bool,
7272
) -> felt252;
73+
fn buy_game_with_salt(
74+
ref self: TContractState,
75+
payment_type: PaymentType,
76+
player_name: Option<felt252>,
77+
to: ContractAddress,
78+
soulbound: bool,
79+
salt: u16,
80+
) -> felt252;
7381

7482
fn payment_token(self: @TContractState) -> ContractAddress;
7583
fn cost_to_play(self: @TContractState) -> u128;
@@ -173,7 +181,9 @@ pub mod TicketBoothComponent {
173181

174182
// Mint the game token with configured settings
175183
let token_id = self
176-
.mint_game_with_salt(player_name, to, soulbound, Option::Some(current_time), expiration, salt);
184+
.mint_game_with_salt(
185+
player_name, to, soulbound, Option::Some(current_time), expiration, salt,
186+
);
177187

178188
// Emit the event
179189
self.emit(GameBought { player: to, token_id, payment_type });

0 commit comments

Comments
 (0)