Skip to content

Commit

Permalink
Implemented get_card function
Browse files Browse the repository at this point in the history
  • Loading branch information
llinsss committed Jan 23, 2025
1 parent 38d1ef8 commit 739d196
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions onchain/src/contracts/lyricsflip.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ pub mod LyricsFlip {
// // TODO
// fn add_card(ref self: ContractState, card: Card) {}

// // TODO
// fn get_card(self: @ContractState, card_id: u64) -> Card {}
fn get_card(self: @ContractState, card_id: u64) -> Card {
self.cards.entry(card_id).read()
}

// // TODO
// fn set_cards_per_round(ref self: ContractState, value: u8) {}
Expand Down

0 comments on commit 739d196

Please sign in to comment.