All Questions
89 questions
0
votes
0
answers
53
views
Solana Anchor - Test Failed Error: Building IDL failed
I'm working on a Solana Anchor project and I'm running into a cryptic error when trying to run my tests:
Finished `_test` profile [unoptimized + debugging] target(s) in 10.14s
Running Unittests src/...
0
votes
0
answers
15
views
SOLANA Cross Program Invocation Error `Instruction cannot be unpacked`
I am making a cpi call to solend DepositReserveLiquidity instruction found here link
which calls then calls this code to unpack the data and execute the instruction link
However , I keep getting this ...
0
votes
1
answer
19
views
Manage anchorpy function call with no signers required
everyone, I have a problem with my code.
This is the anchorpy function which has been generated from the IDL:
class TimeoutAccounts(typing.TypedDict):
participant1: Pubkey
participant2: Pubkey
...
0
votes
0
answers
87
views
distributes reward to all token holders in solana
I am building a contract that distributes rewards to all token holders. However, I am having trouble getting the accountInfo of all token holders in the on-chain program.
Is it impossible to ...
1
vote
0
answers
30
views
How can I test the smart contract?
This is the error code:
error: package solana-program v2.2.1 cannot be built because it requires rustc 1.79.0 or newer, while the currently active rustc version is 1.75.0-dev
Either upgrade to rustc 1....
1
vote
0
answers
50
views
How to view data and preform actions on a Solana Program with an IDL?
I've create a python script to output the raffles from the Solana NFT raffle site https://rafffle.famousfoxes.com/
import asyncio
import json
from anchorpy import Provider, Program, Idl
from solana....
-4
votes
1
answer
79
views
Error Fetching Token Balance in Solana Anchor Program: Expected &AccountInfo<'_>, Found &Pubkey
I'm working on a Solana Anchor program where I need to fetch the token balance for a user based on their public key and a specific token mint. However, I'm encountering an error when trying to ...
0
votes
0
answers
274
views
Why my Solana program encounter this error: Provided seeds do not result in a valid address
I am new to programming in Solana.
Here I want to apply the MPL core for my application. There is a feature that a MPL core asset can bind with an "oracle account". This oracle account ...
0
votes
0
answers
120
views
Did anyone occur the error when building a anchor program w/ metaplex Core?
Recently, I am working on a toy project to learn Solana blockchain, Metaplex Core and NFTs. Everything went well until I try to use the feature called "Oracle plugin", provided by Metaplex. ...
0
votes
1
answer
456
views
Better way to send Solana to multiple public keys in program account using anchor than the way I'm current achieving it? [closed]
New Solana Anchor developer here and I have a question about how I am currently sending Sol to multiple wallets in my program. Currently im using the code below twice and then invoking two separate ...
0
votes
2
answers
148
views
Solana on-chain anchor program maintenance
I'm currently working with the Anchor framework on the Solana blockchain and I would like to know the best practices for maintaining an Anchor program. Specifically, I'm interested in the following ...
1
vote
1
answer
310
views
Facing the Anchor-Rustc Version Mismatch Problem
Since I started using anchor I have been facing this problem where whenever i use the anchor build command, then my IDE-terminal shows me this error:
error: package solana-program v1.18.20 cannot be ...
2
votes
0
answers
319
views
Having issues with Anchor generated IDL file in react project
I am trying to connect React frontend with a Program running in Solana. It work find with my previous attempt a year ago and i was able to write React frontend and connect with a Program running in ...
1
vote
2
answers
576
views
anchor-spl v0.30.1 solana-spl 1.18.17 error[E0308]: mismatched types
I'm building solana smart contract with anchor.
anchor version is 0.30.1
solana-cli version is 1.18.17
first time, I built and deploy smart contract without any issue.
But after I add this two lines, ...
1
vote
0
answers
259
views
anchor deploy program has an error write transactions failed
In localnet solana, i always deploy program successfully. But in devnet, i am getting a error when deploying the program in devnet solana. Help me !. Thank you so much !
I am trying to deploy program ...