From 0a702fbf5679d1d54464466eaf516b5e7b45622f Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Wed, 30 Oct 2024 14:51:44 -0700 Subject: [PATCH] Lock web3.js to 1.x for compatibility --- docs/src/core/transaction-request/MERCHANT_INTEGRATION.md | 4 ++-- docs/src/core/transfer-request/MERCHANT_INTEGRATION.md | 4 ++-- docs/src/core/transfer-request/WALLET_INTEGRATION.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/src/core/transaction-request/MERCHANT_INTEGRATION.md b/docs/src/core/transaction-request/MERCHANT_INTEGRATION.md index febde03f..24462789 100644 --- a/docs/src/core/transaction-request/MERCHANT_INTEGRATION.md +++ b/docs/src/core/transaction-request/MERCHANT_INTEGRATION.md @@ -22,13 +22,13 @@ Install Solana Pay libraries to access the API from your application: **npm** ```shell -npm install @solana/pay @solana/web3.js bignumber.js @solana/spl-token --save +npm install @solana/pay @solana/web3.js@1 bignumber.js @solana/spl-token --save ``` **yarn** ```shell -yarn add @solana/pay @solana/web3.js bignumber.js @solana/spl-token +yarn add @solana/pay @solana/web3.js@1 bignumber.js @solana/spl-token ``` ### 1. Create the handler diff --git a/docs/src/core/transfer-request/MERCHANT_INTEGRATION.md b/docs/src/core/transfer-request/MERCHANT_INTEGRATION.md index 73c81aeb..f46f2991 100644 --- a/docs/src/core/transfer-request/MERCHANT_INTEGRATION.md +++ b/docs/src/core/transfer-request/MERCHANT_INTEGRATION.md @@ -26,13 +26,13 @@ Install the packages and import them in your code. **npm** ```shell -npm install @solana/pay @solana/web3.js bignumber.js --save +npm install @solana/pay @solana/web3.js@1 bignumber.js --save ``` **yarn** ```shell -yarn add @solana/pay @solana/web3.js bignumber.js +yarn add @solana/pay @solana/web3.js@1 bignumber.js ``` ### 1.1 Import necessary modules diff --git a/docs/src/core/transfer-request/WALLET_INTEGRATION.md b/docs/src/core/transfer-request/WALLET_INTEGRATION.md index c4dae542..da3dd5c1 100644 --- a/docs/src/core/transfer-request/WALLET_INTEGRATION.md +++ b/docs/src/core/transfer-request/WALLET_INTEGRATION.md @@ -16,13 +16,13 @@ Install the packages and import them in your code. **npm** ```shell= -npm install @solana/pay @solana/web3.js --save +npm install @solana/pay @solana/web3.js@1 --save ``` **yarn** ```shell= -yarn add @solana/pay @solana/web3.js +yarn add @solana/pay @solana/web3.js@1 ``` ## 2. Parse payment request link