btc-wallet 0.4.1-beta → 0.4.2-beta

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
@@ -3921,8 +3921,10 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
3921
3921
  near_transactions: transactions2
3922
3922
  });
3923
3923
  const predictedGasAmount = new import_big2.default(predictedGas).mul(1.2).toFixed(0);
3924
+ const miniGasAmount = 200;
3925
+ const gasAmount = Math.max(Number(predictedGasAmount), miniGasAmount);
3924
3926
  console.log("predictedGas:", predictedGasAmount);
3925
- return predictedGasAmount;
3927
+ return gasAmount.toString();
3926
3928
  });
3927
3929
  }
3928
3930
  function calculateGasStrategy(gasTokenBalance, transactions2) {
@@ -4054,7 +4056,7 @@ function setupBTCWallet({
4054
4056
 
4055
4057
  // src/index.ts
4056
4058
  var getVersion = () => {
4057
- return "0.4.1-beta";
4059
+ return "0.4.2-beta";
4058
4060
  };
4059
4061
  if (typeof window !== "undefined") {
4060
4062
  window.__BTC_WALLET_VERSION = getVersion();