@lavarage/sdk 6.3.1 → 6.3.2

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/index.js CHANGED
@@ -2465,7 +2465,7 @@ function getTokenAccountOrCreateIfNotExists(lavarageProgram, ownerPublicKey, tok
2465
2465
  return __async(this, null, function* () {
2466
2466
  const associatedTokenAddress = (0, import_spl_token.getAssociatedTokenAddressSync)(tokenAddress, ownerPublicKey, true, tokenProgram, import_spl_token.ASSOCIATED_TOKEN_PROGRAM_ID);
2467
2467
  try {
2468
- const tokenAccount = yield (0, import_spl_token.getAccount)(lavarageProgram.provider.connection, associatedTokenAddress, "finalized");
2468
+ const tokenAccount = yield (0, import_spl_token.getAccount)(lavarageProgram.provider.connection, associatedTokenAddress, "finalized", tokenProgram);
2469
2469
  return { account: tokenAccount, instruction: null };
2470
2470
  } catch (error) {
2471
2471
  if (error instanceof import_spl_token.TokenAccountNotFoundError || error instanceof import_spl_token.TokenInvalidAccountOwnerError) {