@injectivelabs/wallet-core 1.15.39 → 1.15.41

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.
@@ -242,12 +242,14 @@ class MsgBroadcaster {
242
242
  const txRawEip712 = (0, sdk_ts_1.createTxRawEIP712)(txRaw, web3Extension);
243
243
  /** Append Signatures */
244
244
  txRawEip712.signatures = [(0, sdk_ts_1.hexToBuff)(signature)];
245
- return walletStrategy.sendTransaction(txRawEip712, {
245
+ const response = await walletStrategy.sendTransaction(txRawEip712, {
246
246
  chainId,
247
247
  endpoints,
248
248
  txTimeout,
249
249
  address: tx.injectiveAddress,
250
250
  });
251
+ walletStrategy.emit(types_js_1.WalletStrategyEmitterEventType.TransactionBroadcastEnd);
252
+ return await new sdk_ts_1.TxGrpcApi(endpoints.grpc).fetchTxPoll(response.txHash);
251
253
  }
252
254
  /**
253
255
  * Prepare/sign/broadcast transaction using
@@ -239,12 +239,14 @@ export class MsgBroadcaster {
239
239
  const txRawEip712 = createTxRawEIP712(txRaw, web3Extension);
240
240
  /** Append Signatures */
241
241
  txRawEip712.signatures = [hexToBuff(signature)];
242
- return walletStrategy.sendTransaction(txRawEip712, {
242
+ const response = await walletStrategy.sendTransaction(txRawEip712, {
243
243
  chainId,
244
244
  endpoints,
245
245
  txTimeout,
246
246
  address: tx.injectiveAddress,
247
247
  });
248
+ walletStrategy.emit(WalletStrategyEmitterEventType.TransactionBroadcastEnd);
249
+ return await new TxGrpcApi(endpoints.grpc).fetchTxPoll(response.txHash);
248
250
  }
249
251
  /**
250
252
  * Prepare/sign/broadcast transaction using
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-core",
3
3
  "description": "Core wallet strategy",
4
- "version": "1.15.39",
4
+ "version": "1.15.41",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -56,17 +56,17 @@
56
56
  "start": "node dist/index.js"
57
57
  },
58
58
  "dependencies": {
59
- "@injectivelabs/exceptions": "^1.15.36",
60
- "@injectivelabs/networks": "^1.15.37",
61
- "@injectivelabs/sdk-ts": "^1.15.39",
62
- "@injectivelabs/ts-types": "^1.15.37",
63
- "@injectivelabs/utils": "^1.15.37",
64
- "@injectivelabs/wallet-base": "^1.15.39",
59
+ "@injectivelabs/exceptions": "^1.15.38",
60
+ "@injectivelabs/networks": "^1.15.39",
61
+ "@injectivelabs/sdk-ts": "^1.15.41",
62
+ "@injectivelabs/ts-types": "^1.15.39",
63
+ "@injectivelabs/utils": "^1.15.39",
64
+ "@injectivelabs/wallet-base": "^1.15.41",
65
65
  "@keplr-wallet/types": "^0.12.159",
66
66
  "eventemitter3": "^5.0.1"
67
67
  },
68
68
  "devDependencies": {
69
69
  "shx": "^0.3.3"
70
70
  },
71
- "gitHead": "a361beb638480dc874881d175b4d40329706abd2"
71
+ "gitHead": "df725078e865f07678eaad5084324929a8a75d41"
72
72
  }