@injectivelabs/wallet-core 1.20.11 → 1.20.12

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.
@@ -502,7 +502,7 @@ var MsgBroadcaster = class {
502
502
  * always runs out of gas for some reason, temporary solution
503
503
  * to just broadcast the transaction twice
504
504
  **/
505
- if (walletStrategy.wallet === __injectivelabs_wallet_base.Wallet.PrivateKey && checkIfTxRunOutOfGas(exception)) {
505
+ if ([__injectivelabs_wallet_base.Wallet.PrivateKey, __injectivelabs_wallet_base.Wallet.PrivateKeyCosmos].includes(walletStrategy.wallet) && checkIfTxRunOutOfGas(exception)) {
506
506
  const { baseAccount } = await new __injectivelabs_sdk_ts_client_chain.ChainGrpcAuthApi(endpoints.grpc).fetchAccount(tx.injectiveAddress);
507
507
  /** We only do it on the first account tx fail */
508
508
  if (baseAccount.sequence > 1) throw e;
@@ -1,4 +1,4 @@
1
- const require_broadcaster = require('./broadcaster-CPCJe4Al.cjs');
1
+ const require_broadcaster = require('./broadcaster-gz27ziFy.cjs');
2
2
  require('./defineProperty-CImP5zIM.cjs');
3
3
 
4
4
  exports.MsgBroadcaster = require_broadcaster.MsgBroadcaster;
@@ -1,4 +1,4 @@
1
- const require_broadcaster = require('./broadcaster-CPCJe4Al.cjs');
1
+ const require_broadcaster = require('./broadcaster-gz27ziFy.cjs');
2
2
  require('./defineProperty-CImP5zIM.cjs');
3
3
  const require_strategy = require('./strategy-D8mmr647.cjs');
4
4
 
@@ -502,7 +502,7 @@ var MsgBroadcaster = class {
502
502
  * always runs out of gas for some reason, temporary solution
503
503
  * to just broadcast the transaction twice
504
504
  **/
505
- if (walletStrategy.wallet === Wallet.PrivateKey && checkIfTxRunOutOfGas(exception)) {
505
+ if ([Wallet.PrivateKey, Wallet.PrivateKeyCosmos].includes(walletStrategy.wallet) && checkIfTxRunOutOfGas(exception)) {
506
506
  const { baseAccount } = await new ChainGrpcAuthApi(endpoints.grpc).fetchAccount(tx.injectiveAddress);
507
507
  /** We only do it on the first account tx fail */
508
508
  if (baseAccount.sequence > 1) throw e;
@@ -1,4 +1,4 @@
1
- import { n as MsgBroadcaster, t as Web3Broadcaster } from "./broadcaster-CA8Ix8IA.js";
1
+ import { n as MsgBroadcaster, t as Web3Broadcaster } from "./broadcaster-BUSIYzvZ.js";
2
2
  import "./defineProperty-D4YE9KXX.js";
3
3
 
4
4
  export { MsgBroadcaster, Web3Broadcaster };
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as MsgBroadcaster, r as checkIfTxRunOutOfGas, t as Web3Broadcaster } from "./broadcaster-CA8Ix8IA.js";
1
+ import { n as MsgBroadcaster, r as checkIfTxRunOutOfGas, t as Web3Broadcaster } from "./broadcaster-BUSIYzvZ.js";
2
2
  import "./defineProperty-D4YE9KXX.js";
3
3
  import { t as BaseWalletStrategy } from "./strategy-DU-V-GfI.js";
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-core",
3
- "version": "1.20.11",
3
+ "version": "1.20.12",
4
4
  "description": "Core wallet strategy",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -84,12 +84,12 @@
84
84
  "dependencies": {
85
85
  "@keplr-wallet/types": "^0.12.296",
86
86
  "eventemitter3": "^5.0.1",
87
- "@injectivelabs/exceptions": "1.20.11",
88
- "@injectivelabs/sdk-ts": "1.20.11",
89
- "@injectivelabs/utils": "1.20.11",
90
- "@injectivelabs/ts-types": "1.20.11",
91
- "@injectivelabs/networks": "1.20.11",
92
- "@injectivelabs/wallet-base": "1.20.11"
87
+ "@injectivelabs/exceptions": "1.20.12",
88
+ "@injectivelabs/networks": "1.20.12",
89
+ "@injectivelabs/ts-types": "1.20.12",
90
+ "@injectivelabs/utils": "1.20.12",
91
+ "@injectivelabs/wallet-base": "1.20.12",
92
+ "@injectivelabs/sdk-ts": "1.20.12"
93
93
  },
94
94
  "publishConfig": {
95
95
  "access": "public"