@ethereansos/interfaces-core 0.4.86 → 0.4.87
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.
- package/dist/index.cjs.js +15 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +15 -13
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -32274,18 +32274,20 @@ function sendBlockchainTransaction(provider, fromOrPlainPrivateKey, to, data, va
|
|
32274
32274
|
return sendAsync(provider, 'eth_estimateGas', tx);
|
32275
32275
|
|
32276
32276
|
case 65:
|
32277
|
+
tx.gas = tx.gasLimit;
|
32278
|
+
|
32277
32279
|
if (!privateKey) {
|
32278
|
-
_context2.next =
|
32280
|
+
_context2.next = 81;
|
32279
32281
|
break;
|
32280
32282
|
}
|
32281
32283
|
|
32282
32284
|
_context2.t23 = global.EthereumJSTransaction.Transaction;
|
32283
32285
|
_context2.t24 = tx;
|
32284
32286
|
_context2.t25 = parseInt;
|
32285
|
-
_context2.next =
|
32287
|
+
_context2.next = 72;
|
32286
32288
|
return sendAsync(provider, 'eth_chainId');
|
32287
32289
|
|
32288
|
-
case
|
32290
|
+
case 72:
|
32289
32291
|
_context2.t26 = _context2.sent;
|
32290
32292
|
_context2.t27 = (0, _context2.t25)(_context2.t26);
|
32291
32293
|
_context2.t28 = {
|
@@ -32295,17 +32297,17 @@ function sendBlockchainTransaction(provider, fromOrPlainPrivateKey, to, data, va
|
|
32295
32297
|
transaction.sign(privateKey);
|
32296
32298
|
serializedTx = '0x' + transaction.serialize().toString('hex');
|
32297
32299
|
sendTransaction = sendAsync(provider, 'eth_sendRawTransaction', serializedTx);
|
32298
|
-
_context2.next =
|
32300
|
+
_context2.next = 82;
|
32299
32301
|
break;
|
32300
32302
|
|
32301
|
-
case
|
32303
|
+
case 81:
|
32302
32304
|
sendTransaction = sendAsync(provider, 'eth_sendTransaction', tx);
|
32303
32305
|
|
32304
|
-
case
|
32305
|
-
_context2.next =
|
32306
|
+
case 82:
|
32307
|
+
_context2.next = 84;
|
32306
32308
|
return sendTransaction;
|
32307
32309
|
|
32308
|
-
case
|
32310
|
+
case 84:
|
32309
32311
|
transactionHash = _context2.sent;
|
32310
32312
|
console.log(new Date().toUTCString(), 'Transaction!', getEtherscanAddress('tx/' + transactionHash, tx.chainId));
|
32311
32313
|
|
@@ -32363,20 +32365,20 @@ function sendBlockchainTransaction(provider, fromOrPlainPrivateKey, to, data, va
|
|
32363
32365
|
}();
|
32364
32366
|
|
32365
32367
|
setTimeout(timeout);
|
32366
|
-
_context2.next =
|
32368
|
+
_context2.next = 93;
|
32367
32369
|
break;
|
32368
32370
|
|
32369
|
-
case
|
32370
|
-
_context2.prev =
|
32371
|
+
case 90:
|
32372
|
+
_context2.prev = 90;
|
32371
32373
|
_context2.t29 = _context2["catch"](0);
|
32372
32374
|
return _context2.abrupt("return", ko(_context2.t29));
|
32373
32375
|
|
32374
|
-
case
|
32376
|
+
case 93:
|
32375
32377
|
case "end":
|
32376
32378
|
return _context2.stop();
|
32377
32379
|
}
|
32378
32380
|
}
|
32379
|
-
}, _callee2, null, [[0,
|
32381
|
+
}, _callee2, null, [[0, 90], [25, 32]]);
|
32380
32382
|
}));
|
32381
32383
|
|
32382
32384
|
return function (_x, _x2) {
|