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.
- package/dist/depositSPL.js +2 -2
- package/package.json +1 -1
- package/src/depositSPL.ts +2 -2
package/dist/depositSPL.js
CHANGED
|
@@ -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.
|
|
101
|
-
throw new Error(`Need at least 0.
|
|
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
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.
|
|
153
|
-
throw new Error(`Need at least 0.
|
|
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()
|