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, }, );