0

`Transaction error: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x92 at Connection.sendEncodedTransaction (connection.ts:5921:1) at async Connection.sendRawTransaction (connection.ts:5880:1) at async sendAndConfirmRawTransaction (send-and-confirm-raw-transaction.ts:84:1) at async w.send (provider.ts:124:1) at async Object.initialize (rpc.ts:26:1) at async createCounter (App.tsx:111:1)

      try {
        console.log("baseAccount",baseAccount)
        console.log(baseAccount.publicKey)
        const init = await program.rpc.initialize(1, {
            accounts: {
                authority: provider.wallet.publicKey,
                pool: baseAccount.publicKey,
                vault: baseAccount.publicKey,
                owner: provider.wallet.publicKey,
                poolSigner: connectedPublicKey,
                systemProgram: web3.SystemProgram.programId,
            },
            signers: [baseAccount],
        });

        console.log('Pool Initialized:', init);
        const account = await program.account.myAccount.fetch(baseAccount.publicKey);
        console.log('account: ', account);
    }
2

1 Answer 1

0

Are you sure you are using the correct wallets and/or are they funded with sufficent Solana to preform the action you want?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.