privacycash 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -97,8 +97,8 @@ export async function depositSPL({ lightWasm, storage, keyBasePath, publicKey, c
97
97
  // Check SOL balance
98
98
  const solBalance = await connection.getBalance(publicKey);
99
99
  logger.debug(`SOL Wallet balance: ${solBalance / 1e9} SOL`);
100
- if (solBalance / 1e9 < 0.01) {
101
- throw new Error(`Need at least 0.01 SOL for Solana fees.`);
100
+ if (solBalance / 1e9 < 0.002) {
101
+ throw new Error(`Need at least 0.002 SOL for Solana fees.`);
102
102
  }
103
103
  const { globalConfigAccount } = getProgramAccounts();
104
104
  // Create the merkle tree with the pre-initialized poseidon hash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "privacycash",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://github.com/Privacy-Cash/privacy-cash-sdk",
package/src/depositSPL.ts CHANGED
@@ -149,8 +149,8 @@ export async function depositSPL({ lightWasm, storage, keyBasePath, publicKey, c
149
149
  const solBalance = await connection.getBalance(publicKey);
150
150
  logger.debug(`SOL Wallet balance: ${solBalance / 1e9} SOL`);
151
151
 
152
- if (solBalance / 1e9 < 0.01) {
153
- throw new Error(`Need at least 0.01 SOL for Solana fees.`);
152
+ if (solBalance / 1e9 < 0.002) {
153
+ throw new Error(`Need at least 0.002 SOL for Solana fees.`);
154
154
  }
155
155
 
156
156
  const { globalConfigAccount } = getProgramAccounts()