btc-wallet 0.4.1-beta → 0.4.2-beta

Sign up to get free protection for your applications and to get access to all the features.
package/esm/index.js CHANGED
@@ -3874,8 +3874,10 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
3874
3874
  near_transactions: transactions2
3875
3875
  });
3876
3876
  const predictedGasAmount = new Big2(predictedGas).mul(1.2).toFixed(0);
3877
+ const miniGasAmount = 200;
3878
+ const gasAmount = Math.max(Number(predictedGasAmount), miniGasAmount);
3877
3879
  console.log("predictedGas:", predictedGasAmount);
3878
- return predictedGasAmount;
3880
+ return gasAmount.toString();
3879
3881
  });
3880
3882
  }
3881
3883
  function calculateGasStrategy(gasTokenBalance, transactions2) {
@@ -4007,7 +4009,7 @@ function setupBTCWallet({
4007
4009
 
4008
4010
  // src/index.ts
4009
4011
  var getVersion = () => {
4010
- return "0.4.1-beta";
4012
+ return "0.4.2-beta";
4011
4013
  };
4012
4014
  if (typeof window !== "undefined") {
4013
4015
  window.__BTC_WALLET_VERSION = getVersion();