btc-wallet 0.4.0-beta → 0.4.1-beta
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +3 -2
- package/dist/index.js.map +2 -2
- package/esm/index.js +3 -2
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3838,7 +3838,8 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
3838
3838
|
trans.map((transaction, index) => convertTransactionToTxHex(transaction, index))
|
3839
3839
|
);
|
3840
3840
|
const nonceFromApi = yield getNonce(currentConfig.base_url, accountId);
|
3841
|
-
const
|
3841
|
+
const nonceFromContract = (accountInfo == null ? void 0 : accountInfo.nonce) || 0;
|
3842
|
+
const nonce = Number(nonceFromApi) > Number(nonceFromContract) ? String(nonceFromApi) : String(nonceFromContract);
|
3842
3843
|
const intention = {
|
3843
3844
|
chain_id: "397",
|
3844
3845
|
csna: accountId,
|
@@ -4053,7 +4054,7 @@ function setupBTCWallet({
|
|
4053
4054
|
|
4054
4055
|
// src/index.ts
|
4055
4056
|
var getVersion = () => {
|
4056
|
-
return "0.4.
|
4057
|
+
return "0.4.1-beta";
|
4057
4058
|
};
|
4058
4059
|
if (typeof window !== "undefined") {
|
4059
4060
|
window.__BTC_WALLET_VERSION = getVersion();
|