btc-wallet 0.5.13-beta → 0.5.14-beta

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -4407,11 +4407,6 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
4407
4407
  tokenId: currentConfig.nearToken,
4408
4408
  env
4409
4409
  });
4410
- const { balance: btcBalance } = yield getTokenBalance({
4411
- csna: accountId,
4412
- tokenId: currentConfig.btcToken,
4413
- env
4414
- });
4415
4410
  const transferAmount = transactions2.reduce(
4416
4411
  (acc, tx) => {
4417
4412
  tx.actions.forEach((action) => {
@@ -4431,12 +4426,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
4431
4426
  { near: new import_big2.default(0), btc: new import_big2.default(0) }
4432
4427
  );
4433
4428
  const nearAvailableBalance = new import_big2.default(nearBalance).minus(transferAmount.near).toNumber();
4434
- const btcAvailableBalance = new import_big2.default(btcBalance).minus(transferAmount.btc).toNumber();
4435
- if (btcAvailableBalance < 8e-6) {
4436
- throw new Error("BTC balance is not enough, please deposit more BTC.");
4437
- }
4438
4429
  console.log("available near balance:", nearAvailableBalance);
4439
- console.log("available btc balance:", btcAvailableBalance);
4440
4430
  console.log("available gas token balance:", gasTokenBalance);
4441
4431
  const convertTx = yield Promise.all(
4442
4432
  transactions2.map((transaction, index) => convertTransactionToTxHex(transaction, index))
@@ -4584,7 +4574,7 @@ function setupBTCWallet({
4584
4574
 
4585
4575
  // src/index.ts
4586
4576
  var getVersion = () => {
4587
- return "0.5.13-beta";
4577
+ return "0.5.14-beta";
4588
4578
  };
4589
4579
  if (typeof window !== "undefined") {
4590
4580
  window.__BTC_WALLET_VERSION = getVersion();