Serum: Index reservation account has 8 bytes

otherwise all code needs to be able to deal with mango accounts that are
smaller than 8 bytes in size.
This commit is contained in:
Christian Kamm 2022-09-01 11:49:33 +02:00
parent 0222ca8954
commit 5e0001afb8
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ pub struct Serum3RegisterMarket<'info> {
seeds = [b"Serum3Index".as_ref(), group.key().as_ref(), &market_index.to_le_bytes()], seeds = [b"Serum3Index".as_ref(), group.key().as_ref(), &market_index.to_le_bytes()],
bump, bump,
payer = payer, payer = payer,
space = 1, space = 8, // like an anchor account with only a discriminator
)] )]
pub index_reservation: UncheckedAccount<'info>, pub index_reservation: UncheckedAccount<'info>,