Skip to main content

New answers tagged

0 votes

Anchor build not working

This looks like a bug in the typenum crate that you're using. You're using Windows, which doesn't allow for / in the paths, but the code is trying to include a file directly at https://github.com/...
Jon C's user avatar
  • 15.3k
2 votes
Accepted

Error: failed to get recent blockhash: TypeError: fetch failed

on, Linux Pop OS. Fixed the error by changing my DNS to point to the Google DNS server. Start the resolvconf service if it's not on sudo systemctl start resolvconf.service sudo systemctl enable ...
Jimii's user avatar
  • 3,120
0 votes

my solana program keeps exeeding the allowed size limit for some reason. I've been dealing with this issue for days

console.log('Serialized transaction size: ${txSize} bytes'); gives me Serialized transaction size: 308 bytes
soleena's user avatar
1 vote

Anchor Test has Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0

I would recommend using SolanaProgramTest to test Solana programs. If you're using devnet, you'll have to redeploy under a different address or change the seeds between each initialization of an ...
frank's user avatar
  • 11
2 votes

Anchor Test has Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0

This is an expected behaviour. At least based on the code you provided. The test says If PDA Account already created, then we expect an error. The error you receive is 0x0 'Allocate: account Address { ...
chalda's user avatar
  • 1,082
3 votes
Accepted

({"err":{"InstructionError":[1,"PrivilegeEscalation"]}})

Since you are using pda_signer as the authority, you need to add the signer seeds for this account and use the new_with_signer() method let bump = &[YOUR PDA ACCOUNT BUMP HERE]; ...
Jimii's user avatar
  • 3,120
1 vote
Accepted

Error running anchor test: Unable to get latest blockhash

You might be getting rate-limited. Try requesting the airdrop using the airdrop instead, of each time before the tests run. Other possible things to try. Check your local solana config and confirm ...
Jimii's user avatar
  • 3,120

Top 50 recent answers are included