Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 8092

will it fail if the program tried to create an account with the same seeds multiple times , although the bump exists ? using anchor

$
0
0
    #[account(        init,        seeds = [            AMM_CONFIG_SEED.as_bytes()        ],        bump,        payer = admin,        space = 8 + AmmConfig::INIT_SPACE,    )]    pub amm_config: Account<'info, AmmConfig>,

as shown here, the seed is constant , but the program uses a bump which varies to get a valid PDA address , so if I called this instruction to create this account amm_config multiple times , will it fail or success ??

The PDA will be created with the same program ID and the same seed; will it fail or pass?


Viewing all articles
Browse latest Browse all 8092

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>