@injectivelabs/wallet-core 1.15.32 → 1.15.34
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.
|
@@ -16,11 +16,12 @@ class Web3Broadcaster {
|
|
|
16
16
|
async sendTransaction(args) {
|
|
17
17
|
const { walletStrategy, ethereumChainId } = this;
|
|
18
18
|
try {
|
|
19
|
+
const chainId = args.ethereumChainId || ethereumChainId;
|
|
19
20
|
const txHash = await walletStrategy.sendEvmTransaction(args.tx, {
|
|
20
|
-
ethereumChainId,
|
|
21
21
|
address: args.address,
|
|
22
|
+
ethereumChainId: chainId,
|
|
22
23
|
});
|
|
23
|
-
await walletStrategy.getEvmTransactionReceipt(txHash,
|
|
24
|
+
await walletStrategy.getEvmTransactionReceipt(txHash, chainId);
|
|
24
25
|
return txHash;
|
|
25
26
|
}
|
|
26
27
|
catch (e) {
|
|
@@ -13,11 +13,12 @@ export class Web3Broadcaster {
|
|
|
13
13
|
async sendTransaction(args) {
|
|
14
14
|
const { walletStrategy, ethereumChainId } = this;
|
|
15
15
|
try {
|
|
16
|
+
const chainId = args.ethereumChainId || ethereumChainId;
|
|
16
17
|
const txHash = await walletStrategy.sendEvmTransaction(args.tx, {
|
|
17
|
-
ethereumChainId,
|
|
18
18
|
address: args.address,
|
|
19
|
+
ethereumChainId: chainId,
|
|
19
20
|
});
|
|
20
|
-
await walletStrategy.getEvmTransactionReceipt(txHash,
|
|
21
|
+
await walletStrategy.getEvmTransactionReceipt(txHash, chainId);
|
|
21
22
|
return txHash;
|
|
22
23
|
}
|
|
23
24
|
catch (e) {
|
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.
|
|
4
|
+
"version": "1.15.34",
|
|
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.
|
|
60
|
-
"@injectivelabs/networks": "^1.15.
|
|
61
|
-
"@injectivelabs/sdk-ts": "^1.15.
|
|
62
|
-
"@injectivelabs/ts-types": "^1.15.
|
|
63
|
-
"@injectivelabs/utils": "^1.15.
|
|
64
|
-
"@injectivelabs/wallet-base": "^1.15.
|
|
59
|
+
"@injectivelabs/exceptions": "^1.15.31",
|
|
60
|
+
"@injectivelabs/networks": "^1.15.32",
|
|
61
|
+
"@injectivelabs/sdk-ts": "^1.15.34",
|
|
62
|
+
"@injectivelabs/ts-types": "^1.15.32",
|
|
63
|
+
"@injectivelabs/utils": "^1.15.32",
|
|
64
|
+
"@injectivelabs/wallet-base": "^1.15.34",
|
|
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": "
|
|
71
|
+
"gitHead": "0da93d317580a078fe492f51d37ee10f71c3389d"
|
|
72
72
|
}
|