@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
package/dist/cjs/index.cjs
CHANGED
|
@@ -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.
|
|
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({
|