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