-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Description
Currently, txtx uses the surfnet_setAccount cheatcode under the hood to directly write program accounts for instant deployments.
However, large programs will be limited by the max size for an RPC request.
A dedicated RPC method, surfnet_writeProgram, would allow providing data and an offset, allowing for any size program to be written.
This would behave much like program deployments already do by writing to a buffer in small batches with the offset, except this has the benefits of:
- Being limited by the max RPC size (5MB) rather than the max transaction size
- Not requiring signatures
- Not requiring buffer account creation - write directly to account data