Closed jacksondoherty closed 2 months ago
No longer convinced this is needed – realloc should probably just be paired with the instruction that intends to use the new space.
Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.
Motivation
The only current instruction builder for
realloc
is specifically tailored to SPL tokens,createReallocateInstruction
, which contains parameters likeextensionTypes
that don't make sense for other use cases. It would be great to have a genericrealloc
interface / instruction builder similar toSystemProgram.createAccount
.Example use case
Details
Optionally, instead of "additional" we could have new totals.