flipmeme-sdk 1.3.40 → 1.3.41
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/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32449,7 +32449,9 @@ var SolanaConnector = class {
|
|
|
32449
32449
|
});
|
|
32450
32450
|
const latestBlockhash = yield this.config.provider.connection.getLatestBlockhash();
|
|
32451
32451
|
const blockHash = latestBlockhash.blockhash;
|
|
32452
|
-
const tx = new import_web34.Transaction(
|
|
32452
|
+
const tx = new import_web34.Transaction({
|
|
32453
|
+
recentBlockhash: blockHash
|
|
32454
|
+
}).add(modifyComputeUnits).add(addPriorityFee).add(instruction);
|
|
32453
32455
|
yield this.sendTxn(tx, this.lookupTableAccounts, [this.updateAuthority]);
|
|
32454
32456
|
return {
|
|
32455
32457
|
collectionId: collectionID.toString(),
|
|
@@ -32595,7 +32597,11 @@ var SolanaConnector = class {
|
|
|
32595
32597
|
if (!this.program) {
|
|
32596
32598
|
throw new Error("Program not initialized");
|
|
32597
32599
|
}
|
|
32598
|
-
const
|
|
32600
|
+
const latestBlockhash = yield this.config.provider.connection.getLatestBlockhash();
|
|
32601
|
+
const blockHash = latestBlockhash.blockhash;
|
|
32602
|
+
const transaction = new import_web34.Transaction({
|
|
32603
|
+
recentBlockhash: blockHash
|
|
32604
|
+
}).add(
|
|
32599
32605
|
import_web34.SystemProgram.transfer({
|
|
32600
32606
|
fromPubkey: params.userPubkey,
|
|
32601
32607
|
toPubkey: this.configAddresses.ADMIN_FOR_CREDIT_BUY,
|