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 +5 -3
- package/dist/index.js.map +2 -2
- package/esm/index.js +5 -3
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/esm/index.js
CHANGED
@@ -3537,7 +3537,8 @@ function checkSatoshiWhitelist(btcAccountId, env = "mainnet") {
|
|
3537
3537
|
if (!isWhitelisted) {
|
3538
3538
|
Dialog.alert({
|
3539
3539
|
title: "Account is not whitelisted",
|
3540
|
-
message: `
|
3540
|
+
message: `We're live on beta mainnet! Join the whitelist to on-ramp your BTC in just 24 hours.
|
3541
|
+
Sign up now: <a style="color: #ff7a00; text-decoration: underline;" href="https://forms.gle/rrTP1ZbGU5mRZpHdA" target="_blank">https://forms.gle/rrTP1ZbGU5mRZpHdA</a>`,
|
3541
3542
|
dangerouslyUseHTML: true,
|
3542
3543
|
closable: false
|
3543
3544
|
});
|
@@ -3790,7 +3791,8 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
3790
3791
|
trans.map((transaction, index) => convertTransactionToTxHex(transaction, index))
|
3791
3792
|
);
|
3792
3793
|
const nonceFromApi = yield getNonce(currentConfig.base_url, accountId);
|
3793
|
-
const
|
3794
|
+
const nonceFromContract = (accountInfo == null ? void 0 : accountInfo.nonce) || 0;
|
3795
|
+
const nonce = Number(nonceFromApi) > Number(nonceFromContract) ? String(nonceFromApi) : String(nonceFromContract);
|
3794
3796
|
const intention = {
|
3795
3797
|
chain_id: "397",
|
3796
3798
|
csna: accountId,
|
@@ -4005,7 +4007,7 @@ function setupBTCWallet({
|
|
4005
4007
|
|
4006
4008
|
// src/index.ts
|
4007
4009
|
var getVersion = () => {
|
4008
|
-
return "0.
|
4010
|
+
return "0.4.1-beta";
|
4009
4011
|
};
|
4010
4012
|
if (typeof window !== "undefined") {
|
4011
4013
|
window.__BTC_WALLET_VERSION = getVersion();
|