Timeline for Is it possible to deploy a program in just one transaction?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 30 at 17:00 | comment | added | Jonas H. | Oh i didnt know you cant CPI it. :-/ | |
Oct 30 at 15:27 | comment | added | OneMOre14 | I have tried it before, actually you can't invoke bpf_loader_upgradeable::write by CPI, so if the program data is large, still have to spilt into many transactions. But, thanks for your link to cu_optimizations, I found a small program with only 300+ bytes | |
Oct 30 at 14:04 | comment | added | Jonas H. | you would need to use bpf_loader_upgradeable::create_buffer and bpf_loader_upgradeable::write | |
Oct 30 at 11:48 | comment | added | OneMOre14 | in deploy_with_max_program_len, bpf_loader requires buffer account is writeable, so the owner of buffer account must be bpf_loader, failed at the question step 5 again. | |
Oct 30 at 11:22 | history | answered | Jonas H. | CC BY-SA 4.0 |