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 +4 -2
- package/dist/index.js.map +2 -2
- package/esm/index.js +4 -2
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
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
|
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.
|
4012
|
+
return "0.4.2-beta";
|
4011
4013
|
};
|
4012
4014
|
if (typeof window !== "undefined") {
|
4013
4015
|
window.__BTC_WALLET_VERSION = getVersion();
|