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
4
votes
Accepted
Is there a max number of CPI calls allowed in a single ix / or a transaction as a whole? Or ...
there is actually a limit!
The max instruction trace length.
It is limited to 64. So max you can do is 63 CPIs.
You will get a "Max instruction trace length exceeded" if you go over ;)
See this featur …
2
votes
Accepted
having trouble to encode a u64 as data for CPI
I don't know your programs but potentially you just need to use little-endian instead of big-endian.
Try with to_le_bytes and see if that works. Most programs (including the system program) encode the …