@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.
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/solana/index.cjs +1 -1
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/index.js +2 -2
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -3
|
@@ -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.
|
|
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({
|