From 978c9c4f09444f3de6112781e53f0ccda9097f2c Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Wed, 30 Oct 2024 15:47:58 -0700 Subject: [PATCH] Lock to @solana/web3.js 1.x for compatibility Read why, here: https://github.com/solana-labs/solana-web3.js/issues/3498 --- docs/SolanaAction/001.md | 4 ++-- docs/SolanaBasic/004.md | 2 +- docs/SolanaDocumention/clients/javascript.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/SolanaAction/001.md b/docs/SolanaAction/001.md index 345780c0..17bfad1e 100644 --- a/docs/SolanaAction/001.md +++ b/docs/SolanaAction/001.md @@ -75,14 +75,14 @@ Success! Created solana-action at ~/solana-action ```sh cd solana-action -npm i @solana/web3.js @solana/actions +npm i @solana/web3.js@1 @solana/actions ``` 输出: ```sh ➜ ~ cd solana-action -➜ solana-action git:(main) npm i @solana/web3.js @solana/actions +➜ solana-action git:(main) npm i @solana/web3.js@1 @solana/actions added 76 packages, and audited 439 packages in 4m diff --git a/docs/SolanaBasic/004.md b/docs/SolanaBasic/004.md index 3bd8dd38..9cf9be15 100644 --- a/docs/SolanaBasic/004.md +++ b/docs/SolanaBasic/004.md @@ -15,7 +15,7 @@ ```sh npm init -y -npm install @solana/web3.js @solana/spl-token +npm install @solana/web3.js@1 @solana/spl-token ``` ### 2.配置节点 diff --git a/docs/SolanaDocumention/clients/javascript.md b/docs/SolanaDocumention/clients/javascript.md index 9edc165a..2a12e5d7 100644 --- a/docs/SolanaDocumention/clients/javascript.md +++ b/docs/SolanaDocumention/clients/javascript.md @@ -23,13 +23,13 @@ Solana-Web3.js 库旨在提供对 Solana 的全面支持。该库是基于 [Sola #### yarn ```shell -yarn add @solana/web3.js +yarn add @solana/web3.js@1 ``` #### npm ```shell -npm install --save @solana/web3.js +npm install --save @solana/web3.js@1 ``` #### Bundle