Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
4
votes
Type 'SolanaNftAnchor' is missing the following properties from type 'Idl': address, metadata
As per this answer, it's because the IDL spec was rewritten with the 0.0.30 release and it's incompatible with previous versions of anchor. …
2
votes
Issue While Connecting to Frontend with Anchor Backend
Could you try replacing the last argument with an instance of an anchor provider?
provider initialization might looks something like this on an anchor project
anchor.AnchorProvider.env().wallet as anc …
2
votes
Accepted
TypeScript type error with multiple accounts in program struct
TL;DR, use accountsStrict instead of accounts if you want to explicitly specify all the accounts
You are probably using the latest version of anchor which made changes to the IDL, https://github.com/coral-xyz …
2
votes
Accepted
"Cannot read properties of undefined (reading 'encode')" error when calling a method
Try using the bs58 module that anchor re-exports
import { bs58 } from "@coral-xyz/anchor/dist/cjs/utils/bytes";
You can also get information about your Solana environment on the anchor client using
c …
1
vote
different Program Id on devnet than in lib declare_id!
Your generated program I'd when deploying should match the one in the declare_id macro
You can get this after building your program using the anchor CLI command
anchor keys list
0
votes
Anchor IDL address missing from json
The issue was in my tests where I forgot to correctly rename the program declaration after renaming it
// forgot to change
const program = anchor.workspace.OlgProgramName as Program<OlgProgramName>;
…
0
votes
IdlError: Type not found for custom struct
I had updated and made changes to using the new IDL spec from anchor but yarn was still using the older cached version of anchor 0.29.0
solutions that might help
yarn upgrade --latest …