Thank you for taking the time to write this, I am trying to get more familiar with Solana developing and I feel like this is helping.
That being said, for some reason everything works great on localhost, until I go to post a 3rd 'gm' message. In the console I get:
Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbbc
Program <ADDRESS> invoke [1]
Program log: Instruction: SayGm
Program log: Custom program error: 0xbbc
Program <ADDRESS> consumed 7067 of 200000 compute units
Program <ADDRESS> failed: custom program error: 0xbbc
Hi All,
it is really usefull using @project-serum/anchor in a web app.
I also need to interact with tokens using, @solana/spl-token.
to get the account info
D5Nh1z3zUSRZpMRe8Sug26oBJYZ3G5kocBs7qqwMNnZC
bigint.mjs:10 Uncaught (in promise) ReferenceError: Buffer is not defined
at Blob.bigIntLayout.decode (bigint.mjs:10:27)
at Structure.decode (Layout.js:1067:40)
at getAccount (account.mjs:46:38)
at async swapTokens (App.svelte:91:44)
I tried to polyfill using rollup-plugin-node-polyfills in rollup.config.js without success.
Thanks for this tutorial, I have learnt alot from this, but what to add in existing account input (a program account or a payer account), what if I want to use the existing program on the solana blockchain, how can I achieve that. I am new to this I have implemented it successfully, but now I want to use the existing program from the solana blockchain on the devnet.
If I use program account of existing program from devnet, it gives me this error:
"Uncaught (in promise) Error: Invalid account discriminator"
Hey thanks for this awesome tutorial. But I ran in to error. "Provider' only refers to a type, but is being used as a value here." but I have imported the Provider from @project-serum/anchor, any suggestions?
After the colapse of FTX project serum should not be trusted thus you can follow the instructions here to setup anchor anchor-lang.com/docs/installation
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for taking the time to write this, I am trying to get more familiar with Solana developing and I feel like this is helping.
That being said, for some reason everything works great on localhost, until I go to post a 3rd 'gm' message. In the console I get:
Any ideas what's going on here?
Hi, yes, the space allocated for the base account in the original exampe was too small, I updated it to 64+1024. Thanks for pointing this out.
Yeah lol i was doing 64+64+64+64+64
I think the problem is that we are not allocating enough space to the new wallet ! i.e 64+64 i think I am facing similar issue
Hi All,
it is really usefull using @project-serum/anchor in a web app.
I also need to interact with tokens using, @solana/spl-token.
to get the account info
I got following error
I tried to polyfill using
rollup-plugin-node-polyfillsin rollup.config.js without success.Thank you!
Thanks for this tutorial, I have learnt alot from this, but what to add in existing account input (a program account or a payer account), what if I want to use the existing program on the solana blockchain, how can I achieve that. I am new to this I have implemented it successfully, but now I want to use the existing program from the solana blockchain on the devnet.
If I use program account of existing program from devnet, it gives me this error:
"Uncaught (in promise) Error: Invalid account discriminator"
I am using ReactJs as frontend.
Thanks
Hey thanks for this awesome tutorial. But I ran in to error. "Provider' only refers to a type, but is being used as a value here." but I have imported the Provider from @project-serum/anchor, any suggestions?
Good stuff! Really good at explaining it!!
Glad you like it! :D
vartalap-dapp.vercel.app
This is an amazing tutorial do follow it !
Thanks for this, I reposted it in official Svelte reddit with attribution to this article. Hope its oke!
Hi, cool! Could you link me to it?
After the colapse of FTX project serum should not be trusted thus you can follow the instructions here to setup anchor
anchor-lang.com/docs/installation