flipmeme-sdk 1.3.46 → 1.3.47

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 CHANGED
@@ -32591,6 +32591,7 @@ var SolanaConnector = class {
32591
32591
  if (!this.program) {
32592
32592
  throw new Error("Program not initialized");
32593
32593
  }
32594
+ console.log("====1===");
32594
32595
  const transaction = new import_web34.Transaction().add(
32595
32596
  import_web34.SystemProgram.transfer({
32596
32597
  fromPubkey: params.userPubkey,
@@ -32598,7 +32599,8 @@ var SolanaConnector = class {
32598
32599
  lamports: new import_decimal3.default(params.amount).mul(10 ** 9).floor().toNumber()
32599
32600
  })
32600
32601
  );
32601
- return yield this.sendTxn(transaction, null);
32602
+ console.log("====2===");
32603
+ return yield this.sendTxn(transaction, null, void 0);
32602
32604
  });
32603
32605
  }
32604
32606
  claimReferralReward(params) {
@@ -32954,14 +32956,12 @@ var SolanaConnector = class {
32954
32956
  lookupTableAccounts == null ? [] : [lookupTableAccounts]
32955
32957
  );
32956
32958
  const tx = new import_web34.VersionedTransaction(messageV0);
32957
- const sim = yield this.config.provider.connection.simulateTransaction(tx);
32958
- console.log("simulation result == ", sim);
32959
- console.log("transaction size ", tx.serialize().length);
32960
32959
  if (additionalSigner) {
32961
32960
  tx.sign(additionalSigner);
32962
32961
  }
32962
+ const signedTx = yield this.config.signAllTransactions([tx]);
32963
32963
  const signature = yield this.config.provider.connection.sendTransaction(
32964
- tx,
32964
+ signedTx[0],
32965
32965
  { skipPreflight: true, preflightCommitment: "confirmed" }
32966
32966
  );
32967
32967
  return {