diff --git a/src/contract.rs b/src/contract.rs index 5652959..a5b3b08 100644 --- a/src/contract.rs +++ b/src/contract.rs @@ -367,25 +367,15 @@ fn query_game_info(deps: Deps, game_id: u64) -> StdResult { .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, - - }) } diff --git a/src/error.rs b/src/error.rs index 09d1faa..6d39c76 100644 --- a/src/error.rs +++ b/src/error.rs @@ -15,35 +15,35 @@ pub enum ContractError { #[error("Wrong Game Id")] WrongGameId {}, - #[error("Raffle already ended")] - RaffleEnded {}, + // #[error("Raffle already ended")] + // RaffleEnded {}, - #[error("Raffle Time Over")] - RaffleTimeOver {}, + // #[error("Raffle Time Over")] + // RaffleTimeOver {}, - #[error("Raffle not started yet")] - RaffleNotActive {}, + // #[error("Raffle not started yet")] + // RaffleNotActive {}, - #[error("All raffle tickets was sold.")] - RaffleSoldOut {}, + // #[error("All raffle tickets was sold.")] + // RaffleSoldOut {}, - #[error("It is not the end time of the game")] - CantFinishGame {}, + // #[error("It is not the end time of the game")] + // CantFinishGame {}, - #[error("Can not access prize NFT")] - CantAccessPrize {}, + // #[error("Can not access prize NFT")] + // CantAccessPrize {}, - #[error("Incorrect Funds")] - IncorrectFunds {}, + // #[error("Incorrect Funds")] + // IncorrectFunds {}, - #[error("Must send exactly {ticket_price} SEI to enter the raffle")] - PayError { ticket_price: u64 }, + // #[error("Must send exactly {ticket_price} SEI to enter the raffle")] + // PayError { ticket_price: u64 }, - #[error("No participants in the raffle")] - NoParticipants {}, + // #[error("No participants in the raffle")] + // NoParticipants {}, - #[error("Missing NFT contract address")] - MissingNftContractAddr {}, + // #[error("Missing NFT contract address")] + // MissingNftContractAddr {}, #[error("Can not transfer tokens until raffle is finished")] CantTransferTokens {},