btc-wallet 0.5.33-beta → 0.5.35-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/README.md +1 -0
- package/dist/core/btcUtils.d.ts +3 -1
- package/dist/index.js +9 -10
- package/dist/index.js.map +2 -2
- package/esm/index.js +9 -10
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/esm/index.js
CHANGED
@@ -3984,7 +3984,8 @@ function executeBTCDepositAndAction(_0) {
|
|
3984
3984
|
pollResult = true,
|
3985
3985
|
registerDeposit,
|
3986
3986
|
env = "mainnet",
|
3987
|
-
newAccountMinDepositAmount
|
3987
|
+
newAccountMinDepositAmount,
|
3988
|
+
registerContractId
|
3988
3989
|
}) {
|
3989
3990
|
var _a;
|
3990
3991
|
try {
|
@@ -4022,17 +4023,14 @@ function executeBTCDepositAndAction(_0) {
|
|
4022
4023
|
}));
|
4023
4024
|
}
|
4024
4025
|
const storageDepositMsg = {};
|
4025
|
-
const
|
4026
|
-
|
4027
|
-
|
4028
|
-
);
|
4029
|
-
console.log("executeBTCDepositAndAction registerContractId", registerContractId);
|
4030
|
-
const registerRes = yield nearCall(registerContractId, "storage_balance_of", {
|
4026
|
+
const _registerContractId = registerContractId || ((action == null ? void 0 : action.receiver_id) || config.btcToken).replace(config.accountContractId, config.btcToken);
|
4027
|
+
console.log("executeBTCDepositAndAction registerContractId", _registerContractId);
|
4028
|
+
const registerRes = yield nearCall(_registerContractId, "storage_balance_of", {
|
4031
4029
|
account_id: csna
|
4032
4030
|
});
|
4033
4031
|
if (!(registerRes == null ? void 0 : registerRes.available)) {
|
4034
4032
|
storageDepositMsg.storage_deposit_msg = {
|
4035
|
-
contract_id:
|
4033
|
+
contract_id: _registerContractId,
|
4036
4034
|
deposit: registerDeposit || NEAR_STORAGE_DEPOSIT_AMOUNT,
|
4037
4035
|
registration_only: true
|
4038
4036
|
};
|
@@ -4721,7 +4719,8 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
4721
4719
|
gas_token: currentConfig.btcToken,
|
4722
4720
|
gas_limit: gasLimit,
|
4723
4721
|
use_near_pay_gas: useNearPayGas,
|
4724
|
-
nonce
|
4722
|
+
nonce,
|
4723
|
+
replace: true
|
4725
4724
|
};
|
4726
4725
|
const strIntention = JSON.stringify(intention);
|
4727
4726
|
const signature = yield btcContext.signMessage(strIntention);
|
@@ -4859,7 +4858,7 @@ function getGroup(state) {
|
|
4859
4858
|
|
4860
4859
|
// src/index.ts
|
4861
4860
|
var getVersion = () => {
|
4862
|
-
return "0.5.
|
4861
|
+
return "0.5.35-beta";
|
4863
4862
|
};
|
4864
4863
|
if (typeof window !== "undefined") {
|
4865
4864
|
window.__BTC_WALLET_VERSION = getVersion();
|