space issues fixed

This commit is contained in:
Sewmina 2025-07-29 03:07:12 +00:00
parent 5681511a0d
commit 60b0ed6641
7 changed files with 9 additions and 7 deletions

View File

@ -4,14 +4,14 @@
resolution = true
skip-lint = false
[programs.localnet]
[programs.devnet]
bets = "Haj94DF925qNRgcoRwQfNsVLKgSmFhG4bjgtvusMkkpD"
[registry]
url = "https://api.apr.dev"
[provider]
cluster = "Localnet"
cluster = "Devnet"
wallet = "~/.config/solana/id.json"
[scripts]

1
bfk3.json Normal file
View File

@ -0,0 +1 @@
[35,174,214,54,242,1,199,216,163,198,236,156,136,174,255,23,227,139,41,35,8,67,70,64,116,179,59,110,68,243,2,102,222,40,2,247,155,101,212,33,251,2,171,60,245,235,194,209,166,57,123,68,77,134,242,10,253,213,189,51,50,119,177,7]

1
bk5.json Normal file
View File

@ -0,0 +1 @@
[175,127,97,183,211,241,79,174,178,61,65,104,189,207,155,197,146,250,192,93,8,137,68,245,101,185,15,191,159,76,243,215,221,10,222,76,239,168,2,136,183,93,220,122,236,171,209,22,233,114,77,52,207,194,223,80,251,189,50,24,185,22,89,66]

View File

@ -25,7 +25,7 @@ pub struct CreateLeaderboard<'info>{
#[account(
mut,
seeds = [b"ticket_leaderboard_list"],
seeds = [b"ticket_leaderboards_list"],
bump
)]
pub ticket_leaderboard_list: Account<'info, TicketLeaderboardList>,

View File

@ -16,8 +16,8 @@ pub struct InitLeaderboardList<'info>{
#[account(
init,
payer = payer,
space = 8 + 4 + (500 * 8),
seeds = [b"ticket_leaderboard_list"],
space = 8 + TicketLeaderboardList::INIT_SPACE,
seeds = [b"ticket_leaderboards_list"],
bump
)]
pub ticket_leaderboard_list: Account<'info, TicketLeaderboardList>,

View File

@ -7,7 +7,7 @@ pub struct TicketLeaderboard{
pub id: u64,
#[max_len(16)]
pub game_id: String,
#[max_len(500)]
#[max_len(150)]
pub players: Vec<Pubkey>,
pub is_over: bool,
}

View File

@ -4,6 +4,6 @@ use crate::*;
#[account]
#[derive(InitSpace)]
pub struct TicketLeaderboardList{
#[max_len(500)]
#[max_len(300)]
pub leaderboards: Vec<Pubkey>
}