@streamflow/common 13.4.0 → 13.5.0

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.
@@ -236,7 +236,7 @@ var getFilters = (criteria, byteOffsets) => {
236
236
  var prepareWrappedAccount = async (connection, senderAddress, amount) => {
237
237
  const tokenAccount = await splToken.getAssociatedTokenAddress(splToken.NATIVE_MINT, senderAddress, true);
238
238
  const accInfo = await connection.getParsedAccountInfo(tokenAccount);
239
- const instructions = (accInfo.value?.lamports ?? 0) > 0 ? [] : [splToken.createAssociatedTokenAccountInstruction(senderAddress, tokenAccount, senderAddress, splToken.NATIVE_MINT)];
239
+ const instructions = (accInfo.value?.lamports ?? 0) > 0 ? [] : [splToken.createAssociatedTokenAccountIdempotentInstruction(senderAddress, tokenAccount, senderAddress, splToken.NATIVE_MINT)];
240
240
  return [
241
241
  ...instructions,
242
242
  web3_js.SystemProgram.transfer({