@jup-ag/lend 0.1.5 → 0.1.6

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.
@@ -28,9 +28,12 @@ const getOrCreateATAInstruction = async (owner, mint, connection) => {
28
28
  // allowOwnerOffCurve - supports PDA owners
29
29
  tokenProgram
30
30
  );
31
- const account = await getAccount(connection, associatedTokenAccount).catch(
32
- () => null
33
- );
31
+ const account = await getAccount(
32
+ connection,
33
+ associatedTokenAccount,
34
+ "confirmed",
35
+ tokenProgram
36
+ ).catch(() => null);
34
37
  const ixs = [];
35
38
  if (!account) {
36
39
  ixs.push(
package/dist/index.mjs CHANGED
@@ -8,6 +8,6 @@ import './shared/lend.CioR9-te.mjs';
8
8
  import '@solana/spl-token';
9
9
  import 'bn.js';
10
10
 
11
- const version = "0.1.5";
11
+ const version = "0.1.6";
12
12
 
13
13
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jup-ag/lend",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "type": "module",