Skip to content

Commit

Permalink
change query_game_info
Browse files Browse the repository at this point in the history
  • Loading branch information
oxmmty committed Sep 28, 2024
2 parents 62f4daf + 9a24116 commit 0a13eb9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,15 +367,24 @@ fn query_game_info(deps: Deps, game_id: u64) -> StdResult<GameResponse> {
.map_err(|_| StdError::generic_err("Game with provided ID does not exist"))?;

Ok(GameResponse {

ticket_price: game_state.ticket_price,
sold_ticket_count: game_state.sold_ticket_count,
total_ticket_count: game_state.total_ticket_count,
raffle_status: game_state.raffle_status,

nft_contract_addr: game_state.nft_contract_addr,

nft_token_id: game_state.nft_token_id,

owner: game_state.owner,


collection_wallet: game_state.collection_wallet,


end_time: game_state.end_time,

})
}

Expand Down

0 comments on commit 0a13eb9

Please sign in to comment.