btc-wallet 0.5.23-beta → 0.5.24-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.
@@ -37,7 +37,7 @@ export interface AccountInfo {
37
37
  export declare function getAccountInfo({ csna, env }: {
38
38
  csna: string;
39
39
  env: ENV;
40
- }): Promise<AccountInfo | undefined>;
40
+ }): Promise<AccountInfo>;
41
41
  export declare function getBridgeConfig({ env }: {
42
42
  env: ENV;
43
43
  }): Promise<{
package/esm/index.js CHANGED
@@ -3289,7 +3289,8 @@ function getAccountInfo(_0) {
3289
3289
  },
3290
3290
  { network: config.network }
3291
3291
  ).catch((error) => {
3292
- return void 0;
3292
+ console.log(`get_account error, please try again later`, error);
3293
+ throw error;
3293
3294
  });
3294
3295
  return accountInfo;
3295
3296
  });
@@ -3649,7 +3650,7 @@ function calculateWithdraw(_0) {
3649
3650
  return {
3650
3651
  withdrawFee: 0,
3651
3652
  isError: true,
3652
- errorMsg: "Mini withdraw amount is " + (Number(brgConfig.min_withdraw_amount) + Number(gasLimit))
3653
+ errorMsg: `Mini withdraw amount is ${Number(brgConfig.min_withdraw_amount) + Number(gasLimit)} sats`
3653
3654
  };
3654
3655
  }
3655
3656
  }
@@ -4270,7 +4271,6 @@ function createFloatingButtonWithIframe({
4270
4271
  zIndex: "100000",
4271
4272
  width: "60px",
4272
4273
  height: "60px",
4273
- borderRadius: "50%",
4274
4274
  cursor: "grab",
4275
4275
  transition: "transform 0.15s ease",
4276
4276
  userSelect: "none"
@@ -4778,7 +4778,7 @@ function setupBTCWallet({
4778
4778
 
4779
4779
  // src/index.ts
4780
4780
  var getVersion = () => {
4781
- return "0.5.23-beta";
4781
+ return "0.5.24-beta";
4782
4782
  };
4783
4783
  if (typeof window !== "undefined") {
4784
4784
  window.__BTC_WALLET_VERSION = getVersion();