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/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 nonce = Number(nonceFromApi) > Number(accountInfo == null ? void 0 : accountInfo.nonce) ? String(nonceFromApi) : String(accountInfo == null ? void 0 : accountInfo.nonce);
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.0-beta";
4010
+ return "0.4.1-beta";
4010
4011
  };
4011
4012
  if (typeof window !== "undefined") {
4012
4013
  window.__BTC_WALLET_VERSION = getVersion();