bet-test-sdk 1.3.0 → 1.3.1

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/README.md CHANGED
@@ -248,7 +248,7 @@ const createAndBuyToken = async (sdk, testAccount) => {
248
248
  name: "TST-B",
249
249
  symbol: "TST-B",
250
250
  description: "TST-B: A test token",
251
- file: await fs.openAsBlob("example/basic/test.jpg"),
251
+ file: new File([await fs.openAsBlob("example/basic/test.jpg")], "test.jpg", { type: "image/jpeg" }),
252
252
  migrateDex: MigrateDex.Meteora,
253
253
  twitter: "https://example.x.com",
254
254
  createdOn: "https://test.bet.com",
@@ -18604,7 +18604,7 @@ class BetSDK {
18604
18604
  const buyTokenAmount = this.getInitialBuyPrice(buyAmountSol); // token amount
18605
18605
  const buyTokenAmountWithSlippage = calculateMinOutWithSlippage(// token amount with slippage
18606
18606
  buyTokenAmount, slippageBasisPoints);
18607
- const buyTx = await this.getBuyInstructionsBySolAmount(creator, mintKeyPair.publicKey, buyAmountSol, buyTokenAmountWithSlippage);
18607
+ const buyTx = await this.getBuyInstructionsBySol(creator, mintKeyPair.publicKey, buyAmountSol, buyTokenAmountWithSlippage);
18608
18608
  newTx.add(buyTx);
18609
18609
  }
18610
18610
  return {