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 |
Should be used for all things relating to the Anchor Framework.
3
votes
1
answer
85
views
Are writes to BTreeMaps expensive? How much compute units does it take?
I am using a quite a few BTreeMaps and i am writing to 2 BTreeMaps and it is using all the compute units. So i wanted to know how much compute units it takes and what can be the alternatives for using …
3
votes
1
answer
415
views
On Chain: How can i verify if an account holds a NFT of a particular collection?
I want to build a governance program where only accounts which hold the NFT of a particular collection can vote. How can i check on chain if an accounts holds an NFT of a particular collection. Would …
3
votes
Accepted
CPI call succeeds with one input and fails with another one (same length)
The program is panicking because it Could not create program address with signer seeds: Provided seeds do not result in a valid address . This means that the PDA lies on the curve. This is happening b …
2
votes
1
answer
263
views
How to show a message in phantom wallet while signing an anchor transaction?
I was wondering how is it possible to show a message while signing an anchor transaction since it creates a transaction by itself unlike how you do using @solana/web3.js. …
3
votes
1
answer
60
views
How to allocate `Optional` accounts on heap?
I am trying to use optional accounts and since there are many accounts, i tried boxing them. But looks like the derive macro panics when i try to box the optional accounts like below.
escrow_account: …