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 |
Questions using Cross-Program Invocation (CPI) to make calls between on-chain programs
1
vote
Is it possible to have a mintTo CPI and transfer CPI within same program? The tests are pass...
You need to send the transaction with preflightChecks: false so that you can get the full error message in the program logs. There's no issue with calling two CPIs in one transaction.
3
votes
How to get Data for an instruction from a program that uses an older version of anchor?
If you build the crate with anchor-gen before importing it, this should clear up your issues. As noted in another question about CPIing to older client versions
use anchor-gen on the program
import t …
1
vote
Passing Data and Accounts to Anchor Program
Adding some descriptive tags:
Cross program invocation (CPI) from a regular rust solana program to an anchor program …
5
votes
can there be two signers in an anchor CPI
Yes, you can have multiple PDA signers.
If you notice when passing in a single seed normally, it's wrapped in another array. This extra array allows you to pass in multiple seeds. It looks something l …