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

Transaction simulation error using phantom wallet

$
0
0

`Transaction error: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x92at 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);    }

Viewing all articles
Browse latest Browse all 7969

Trending Articles



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