From 9e81798d6dfb261071f4d659eec2ec425306803b Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 26 Oct 2021 19:10:27 +0000 Subject: [PATCH] fix(docs): missing import (#20788) (#20996) add missing import of `Connection` (cherry picked from commit 521b7b79cc9711e95857e01adb3b3d9b62d624a0) Co-authored-by: Colin Ogoo --- docs/src/developing/clients/javascript-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/developing/clients/javascript-api.md b/docs/src/developing/clients/javascript-api.md index f9ab863d95..ff8a6a19e8 100644 --- a/docs/src/developing/clients/javascript-api.md +++ b/docs/src/developing/clients/javascript-api.md @@ -135,7 +135,7 @@ The above code achieves creating a transaction ready to be signed and broadcaste All that is left is to sign the transaction with keypair and send it over the network. You can accomplish sending a transaction by using `sendAndConfirmTransaction` if you wish to alert the user or do something after a transaction is finished, or use `sendTransaction` if you don't need to wait for the transaction to be confirmed. ```javascript -const {sendAndConfirmTransaction, clusterApiUrl} = require("@solana/web3.js"); +const {sendAndConfirmTransaction, clusterApiUrl, Connection} = require("@solana/web3.js"); let keypair = Keypair.generate(); let connection = new Connection(clusterApiUrl('testnet'));