btc-wallet 0.5.34-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/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 registerContractId = ((action == null ? void 0 : action.receiver_id) || config.btcToken).replace(
4026
- config.accountContractId,
4027
- config.btcToken
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: registerContractId,
4033
+ contract_id: _registerContractId,
4036
4034
  deposit: registerDeposit || NEAR_STORAGE_DEPOSIT_AMOUNT,
4037
4035
  registration_only: true
4038
4036
  };
@@ -4860,7 +4858,7 @@ function getGroup(state) {
4860
4858
 
4861
4859
  // src/index.ts
4862
4860
  var getVersion = () => {
4863
- return "0.5.34-beta";
4861
+ return "0.5.35-beta";
4864
4862
  };
4865
4863
  if (typeof window !== "undefined") {
4866
4864
  window.__BTC_WALLET_VERSION = getVersion();