5

I deployed a program, but now I try to upgrade it still requires 1.78 SOL it seems, I had deposited about 3.8 SOL before for the program to be deployed. It seems a bit senseless to pay for every time I make a small change in the code?

2 Answers 2

3

These lamports are to allocate a temporary program buffer account to deploy into. Once the upgrade is complete it will be closed and the lamports recovered

2

On upgrade, you need to have the requested amount of SOL in your wallet, but it will not be permanently charged. After the upgrade, you end up with roughly the same amount of SOL that you had just before the upgrade. There will just be a very low amount deducted for the actual transaction fees.

In my case, I had to deposit over 8 SOL to deploy my Program. Every upgrade requires 3.7 SOL in my wallet, but almost all of it is still in my wallet after the upgrade.

The transaction fees in this case were just a few cents.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.