solana-playground / solana-playground

Quickly develop, deploy and test Solana programs from browsers
https://beta.solpg.io
Apache License 2.0
399 stars 135 forks source link

Add support for deploying programs from wallet extensions #230

Closed acheroncrypto closed 2 weeks ago

acheroncrypto commented 3 weeks ago

Problem

It is currently only possible to deploy programs from the native playground wallet. The reason is because most wallets don't allow auto-approve functionality.

Being able to deploy programs using wallet extensions, which would also allow using hardware wallets, has been one of the most requested features.

Solution

We can get around this limitation by using the playground wallet for the buffer write instructions, and the initial (buffer create) and the last (deploy/upgrade) instructions can be signed with a standard wallet.

acheroncrypto commented 2 weeks ago

Added in https://github.com/solana-playground/solana-playground/commit/981833e42bab1dd145a352475aab3a2cd5ee09e9.