From 9a2ae116c5698ea175205e2eea2015985de8aaa6 Mon Sep 17 00:00:00 2001 From: nickfrosty Date: Wed, 13 Dec 2023 12:15:45 -0500 Subject: [PATCH] feat: added playground type error callout --- content/guides/token-extensions/mint-close-authority.md | 8 ++++++++ content/guides/token-extensions/permanent-delegate.md | 8 ++++++++ content/guides/token-extensions/required-memo.md | 8 ++++++++ content/guides/token-extensions/transfer-fee.md | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/content/guides/token-extensions/mint-close-authority.md b/content/guides/token-extensions/mint-close-authority.md index c4a0b5525..a3f19f36e 100644 --- a/content/guides/token-extensions/mint-close-authority.md +++ b/content/guides/token-extensions/mint-close-authority.md @@ -42,6 +42,14 @@ console.log(`My balance: ${balance / web3.LAMPORTS_PER_SOL} SOL`); If it is your first time using Solana Playground, you'll first need to create a Playground Wallet and fund the wallet with devnet SOL. + + +If you do not have a Playground wallet, you may see a type error within the +editor on all declarations of `pg.wallet.publicKey`. This type error will clear +after you create a Playground wallet. + + + To get devnet SOL, run the `solana airdrop` command in the Playground's terminal, or visit this [devnet faucet](https://faucet.solana.com/). diff --git a/content/guides/token-extensions/permanent-delegate.md b/content/guides/token-extensions/permanent-delegate.md index d228d3bf1..458cf210c 100644 --- a/content/guides/token-extensions/permanent-delegate.md +++ b/content/guides/token-extensions/permanent-delegate.md @@ -54,6 +54,14 @@ console.log(`My balance: ${balance / web3.LAMPORTS_PER_SOL} SOL`); If it is your first time using Solana Playground, you'll first need to create a Playground Wallet and fund the wallet with devnet SOL. + + +If you do not have a Playground wallet, you may see a type error within the +editor on all declarations of `pg.wallet.publicKey`. This type error will clear +after you create a Playground wallet. + + + To get devnet SOL, run the `solana airdrop` command in the Playground's terminal, or visit this [devnet faucet](https://faucet.solana.com/). diff --git a/content/guides/token-extensions/required-memo.md b/content/guides/token-extensions/required-memo.md index e0328363d..a66b26aa2 100644 --- a/content/guides/token-extensions/required-memo.md +++ b/content/guides/token-extensions/required-memo.md @@ -41,6 +41,14 @@ console.log(`My balance: ${balance / web3.LAMPORTS_PER_SOL} SOL`); If it is your first time using Solana Playground, you'll first need to create a Playground Wallet and fund the wallet with devnet SOL. + + +If you do not have a Playground wallet, you may see a type error within the +editor on all declarations of `pg.wallet.publicKey`. This type error will clear +after you create a Playground wallet. + + + To get devnet SOL, run the `solana airdrop` command in the Playground's terminal, or visit this [devnet faucet](https://faucet.solana.com/). diff --git a/content/guides/token-extensions/transfer-fee.md b/content/guides/token-extensions/transfer-fee.md index 009518187..f9ba1af27 100644 --- a/content/guides/token-extensions/transfer-fee.md +++ b/content/guides/token-extensions/transfer-fee.md @@ -60,6 +60,14 @@ console.log(`My balance: ${balance / web3.LAMPORTS_PER_SOL} SOL`); If it is your first time using Solana Playground, you'll first need to create a Playground Wallet and fund the wallet with devnet SOL. + + +If you do not have a Playground wallet, you may see a type error within the +editor on all declarations of `pg.wallet.publicKey`. This type error will clear +after you create a Playground wallet. + + + To get devnet SOL, run the `solana airdrop` command in the Playground's terminal, or visit this [devnet faucet](https://faucet.solana.com/).