btc-wallet 0.4.0-beta → 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 +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/esm/index.js
CHANGED
@@ -3791,7 +3791,8 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
3791
3791
|
trans.map((transaction, index) => convertTransactionToTxHex(transaction, index))
|
3792
3792
|
);
|
3793
3793
|
const nonceFromApi = yield getNonce(currentConfig.base_url, accountId);
|
3794
|
-
const
|
3794
|
+
const nonceFromContract = (accountInfo == null ? void 0 : accountInfo.nonce) || 0;
|
3795
|
+
const nonce = Number(nonceFromApi) > Number(nonceFromContract) ? String(nonceFromApi) : String(nonceFromContract);
|
3795
3796
|
const intention = {
|
3796
3797
|
chain_id: "397",
|
3797
3798
|
csna: accountId,
|
@@ -4006,7 +4007,7 @@ function setupBTCWallet({
|
|
4006
4007
|
|
4007
4008
|
// src/index.ts
|
4008
4009
|
var getVersion = () => {
|
4009
|
-
return "0.4.
|
4010
|
+
return "0.4.1-beta";
|
4010
4011
|
};
|
4011
4012
|
if (typeof window !== "undefined") {
|
4012
4013
|
window.__BTC_WALLET_VERSION = getVersion();
|