btc-wallet 0.3.34 → 0.4.1-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
@@ -3584,7 +3584,8 @@ function checkSatoshiWhitelist(btcAccountId, env = "mainnet") {
3584
3584
  if (!isWhitelisted) {
3585
3585
  Dialog.alert({
3586
3586
  title: "Account is not whitelisted",
3587
- message: `Sorry, you are not whitelisted. Please fill out the form to get whitelisted. <a style="color: #ff7a00; text-decoration: underline;" href="https://forms.gle/rrTP1ZbGU5mRZpHdA" target="_blank">https://forms.gle/rrTP1ZbGU5mRZpHdA</a>`,
3587
+ message: `We're live on beta mainnet! Join the whitelist to on-ramp your BTC in just 24 hours.
3588
+ Sign up now: <a style="color: #ff7a00; text-decoration: underline;" href="https://forms.gle/rrTP1ZbGU5mRZpHdA" target="_blank">https://forms.gle/rrTP1ZbGU5mRZpHdA</a>`,
3588
3589
  dangerouslyUseHTML: true,
3589
3590
  closable: false
3590
3591
  });
@@ -3837,7 +3838,8 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
3837
3838
  trans.map((transaction, index) => convertTransactionToTxHex(transaction, index))
3838
3839
  );
3839
3840
  const nonceFromApi = yield getNonce(currentConfig.base_url, accountId);
3840
- const nonce = Number(nonceFromApi) > Number(accountInfo == null ? void 0 : accountInfo.nonce) ? String(nonceFromApi) : String(accountInfo == null ? void 0 : accountInfo.nonce);
3841
+ const nonceFromContract = (accountInfo == null ? void 0 : accountInfo.nonce) || 0;
3842
+ const nonce = Number(nonceFromApi) > Number(nonceFromContract) ? String(nonceFromApi) : String(nonceFromContract);
3841
3843
  const intention = {
3842
3844
  chain_id: "397",
3843
3845
  csna: accountId,
@@ -4052,7 +4054,7 @@ function setupBTCWallet({
4052
4054
 
4053
4055
  // src/index.ts
4054
4056
  var getVersion = () => {
4055
- return "0.3.34";
4057
+ return "0.4.1-beta";
4056
4058
  };
4057
4059
  if (typeof window !== "undefined") {
4058
4060
  window.__BTC_WALLET_VERSION = getVersion();