3

I confuse a bit about this. If I can deploy a program as many as I want to a specific account so program in Solana is mutable. It's unlike other blockchains like Ethereum when deployed contract its contract are immutable along with its address

0

1 Answer 1

4

Redeploy a program

A program can be redeployed to the same address to facilitate rapid development, bug fixes, or upgrades. Matching keypair files are generated once so that redeployments will be to the same program address.

solana program deploy <PROGRAM_FILEPATH>

Immutable programs

A program can be marked immutable, which prevents all further redeployments, by specifying the --final flag during deployment:

solana program deploy <PROGRAM_FILEPATH> --final
2
  • I found your Git repository very useful. Can You please tell Me How to sign multiple transactions with only one signature popup? I have to send multiple transactions from my front end, usually, for every transaction, the user is asked to sign on Wallet. Is there a way to sign all of them at once in User Wallet, instead of the popup happening for all of the transactions? Aug 20, 2022 at 3:44
  • It has already been asked solana.stackexchange.com/questions/2248/…
    – vicyyn
    Aug 20, 2022 at 9:55

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.