@atomiqlabs/chain-evm 2.0.8 → 2.0.9
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.
|
@@ -211,12 +211,7 @@ class EVMTransactions extends EVMModule_1.EVMModule {
|
|
|
211
211
|
for (let i = 0; i < txs.length; i++) {
|
|
212
212
|
let tx;
|
|
213
213
|
if (signer.signTransaction == null) {
|
|
214
|
-
tx = await signer.sendTransaction(txs[i], onBeforePublish)
|
|
215
|
-
.catch(e => {
|
|
216
|
-
if (e?.message?.includes("User rejected"))
|
|
217
|
-
e.message = "User refused to sign the transaction";
|
|
218
|
-
throw e;
|
|
219
|
-
});
|
|
214
|
+
tx = await signer.sendTransaction(txs[i], onBeforePublish);
|
|
220
215
|
}
|
|
221
216
|
else {
|
|
222
217
|
const signedTx = signedTxs[i];
|
|
@@ -246,12 +241,7 @@ class EVMTransactions extends EVMModule_1.EVMModule {
|
|
|
246
241
|
for (let i = 0; i < txs.length; i++) {
|
|
247
242
|
let tx;
|
|
248
243
|
if (signer.signTransaction == null) {
|
|
249
|
-
tx = await signer.sendTransaction(txs[i], onBeforePublish)
|
|
250
|
-
.catch(e => {
|
|
251
|
-
if (e?.message?.includes("User rejected"))
|
|
252
|
-
e.message = "User refused to sign the transaction";
|
|
253
|
-
throw e;
|
|
254
|
-
});
|
|
244
|
+
tx = await signer.sendTransaction(txs[i], onBeforePublish);
|
|
255
245
|
}
|
|
256
246
|
else {
|
|
257
247
|
const signedTx = signedTxs[i];
|
|
@@ -16,8 +16,8 @@ class EVMBrowserSigner extends EVMSigner_1.EVMSigner {
|
|
|
16
16
|
return await super.sendTransaction(transaction, onBeforePublish);
|
|
17
17
|
}
|
|
18
18
|
catch (e) {
|
|
19
|
-
if (e
|
|
20
|
-
|
|
19
|
+
if (e?.message?.includes("ACTION_REJECTED") || e?.message?.includes("User rejected"))
|
|
20
|
+
e.message = "User refused to sign the transaction";
|
|
21
21
|
throw e;
|
|
22
22
|
}
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -253,11 +253,7 @@ export class EVMTransactions extends EVMModule<any> {
|
|
|
253
253
|
for(let i=0;i<txs.length;i++) {
|
|
254
254
|
let tx: TransactionResponse | Transaction;
|
|
255
255
|
if(signer.signTransaction==null) {
|
|
256
|
-
tx = await signer.sendTransaction(txs[i], onBeforePublish)
|
|
257
|
-
.catch(e => {
|
|
258
|
-
if(e?.message?.includes("User rejected")) e.message = "User refused to sign the transaction";
|
|
259
|
-
throw e;
|
|
260
|
-
});
|
|
256
|
+
tx = await signer.sendTransaction(txs[i], onBeforePublish);
|
|
261
257
|
} else {
|
|
262
258
|
const signedTx = signedTxs[i];
|
|
263
259
|
await this.sendSignedTransaction(signedTx, onBeforePublish);
|
|
@@ -285,11 +281,7 @@ export class EVMTransactions extends EVMModule<any> {
|
|
|
285
281
|
for(let i=0;i<txs.length;i++) {
|
|
286
282
|
let tx: TransactionResponse | Transaction;
|
|
287
283
|
if(signer.signTransaction==null) {
|
|
288
|
-
tx = await signer.sendTransaction(txs[i], onBeforePublish)
|
|
289
|
-
.catch(e => {
|
|
290
|
-
if(e?.message?.includes("User rejected")) e.message = "User refused to sign the transaction";
|
|
291
|
-
throw e;
|
|
292
|
-
});
|
|
284
|
+
tx = await signer.sendTransaction(txs[i], onBeforePublish);
|
|
293
285
|
} else {
|
|
294
286
|
const signedTx = signedTxs[i];
|
|
295
287
|
await this.sendSignedTransaction(signedTx, onBeforePublish);
|
|
@@ -17,8 +17,8 @@ export class EVMBrowserSigner extends EVMSigner {
|
|
|
17
17
|
try {
|
|
18
18
|
return await super.sendTransaction(transaction, onBeforePublish);
|
|
19
19
|
} catch (e: any) {
|
|
20
|
-
if(e
|
|
21
|
-
|
|
20
|
+
if(e?.message?.includes("ACTION_REJECTED") || e?.message?.includes("User rejected"))
|
|
21
|
+
e.message = "User refused to sign the transaction";
|
|
22
22
|
throw e;
|
|
23
23
|
}
|
|
24
24
|
}
|