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

Facing issue with account creation with bubblegum, Error: Transaction failed ({"err":{"InstructionError":[0,{"Custom":1}]}})

$
0
0

I am trying to create account using below method of bubblegum but getting strange error({"err":{"InstructionError":[0,{"Custom":1}]}}) as described here https://github.com/metaplex-foundation/mpl-bubblegum/blob/main/clients/js-solita/tests/main.test.ts#L139-L145 can someone suggest what is going wrong here

const allocTreeIx = anchor.web3.SystemProgram.createAccount({      fromPubkey: payer.publicKey,      newAccountPubkey: merkleTree.publicKey,      lamports:        await provider.connection.getMinimumBalanceForRentExemption(space),      space: space,      programId: SPL_ACCOUNT_COMPRESSION_PROGRAM_ID,    });    const tx = new Transaction().add(allocTreeIx);    tx.feePayer = payer.publicKey;    console.log(tx);    await sendAndConfirmTransaction(      provider.connection,      tx,      [payer, merkleTree],      {        commitment: "confirmed",        skipPreflight: true,      },    );

Viewing all articles
Browse latest Browse all 8004

Trending Articles



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