@relai-fi/x402 0.5.28 → 0.5.29
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/client.cjs +1 -9
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +1 -10
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +1 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +1 -9
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +1 -10
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -708,7 +708,6 @@ import {
|
|
|
708
708
|
import {
|
|
709
709
|
getAssociatedTokenAddress,
|
|
710
710
|
createTransferCheckedInstruction,
|
|
711
|
-
createAssociatedTokenAccountIdempotentInstruction,
|
|
712
711
|
getMint,
|
|
713
712
|
TOKEN_PROGRAM_ID,
|
|
714
713
|
TOKEN_2022_PROGRAM_ID
|
|
@@ -1469,19 +1468,11 @@ function createX402Client(config) {
|
|
|
1469
1468
|
[],
|
|
1470
1469
|
programId
|
|
1471
1470
|
);
|
|
1472
|
-
const createDestAtaIx = createAssociatedTokenAccountIdempotentInstruction(
|
|
1473
|
-
feePayerPubkey,
|
|
1474
|
-
// payer (feePayer covers this)
|
|
1475
|
-
destinationAta,
|
|
1476
|
-
merchantPubkey,
|
|
1477
|
-
mintPubkey,
|
|
1478
|
-
programId
|
|
1479
|
-
);
|
|
1480
1471
|
const { blockhash } = await connection.getLatestBlockhash("confirmed");
|
|
1481
1472
|
const message = new TransactionMessage({
|
|
1482
1473
|
payerKey: feePayerPubkey,
|
|
1483
1474
|
recentBlockhash: blockhash,
|
|
1484
|
-
instructions: [
|
|
1475
|
+
instructions: [transferIx]
|
|
1485
1476
|
}).compileToV0Message();
|
|
1486
1477
|
const transaction = new VersionedTransaction(message);
|
|
1487
1478
|
const signedTx = await solWallet.signTransaction(transaction);
|