@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.esm.js CHANGED
@@ -32263,18 +32263,20 @@ function sendBlockchainTransaction(provider, fromOrPlainPrivateKey, to, data, va
32263
32263
  return sendAsync(provider, 'eth_estimateGas', tx);
32264
32264
 
32265
32265
  case 65:
32266
+ tx.gas = tx.gasLimit;
32267
+
32266
32268
  if (!privateKey) {
32267
- _context2.next = 80;
32269
+ _context2.next = 81;
32268
32270
  break;
32269
32271
  }
32270
32272
 
32271
32273
  _context2.t23 = global.EthereumJSTransaction.Transaction;
32272
32274
  _context2.t24 = tx;
32273
32275
  _context2.t25 = parseInt;
32274
- _context2.next = 71;
32276
+ _context2.next = 72;
32275
32277
  return sendAsync(provider, 'eth_chainId');
32276
32278
 
32277
- case 71:
32279
+ case 72:
32278
32280
  _context2.t26 = _context2.sent;
32279
32281
  _context2.t27 = (0, _context2.t25)(_context2.t26);
32280
32282
  _context2.t28 = {
@@ -32284,17 +32286,17 @@ function sendBlockchainTransaction(provider, fromOrPlainPrivateKey, to, data, va
32284
32286
  transaction.sign(privateKey);
32285
32287
  serializedTx = '0x' + transaction.serialize().toString('hex');
32286
32288
  sendTransaction = sendAsync(provider, 'eth_sendRawTransaction', serializedTx);
32287
- _context2.next = 81;
32289
+ _context2.next = 82;
32288
32290
  break;
32289
32291
 
32290
- case 80:
32292
+ case 81:
32291
32293
  sendTransaction = sendAsync(provider, 'eth_sendTransaction', tx);
32292
32294
 
32293
- case 81:
32294
- _context2.next = 83;
32295
+ case 82:
32296
+ _context2.next = 84;
32295
32297
  return sendTransaction;
32296
32298
 
32297
- case 83:
32299
+ case 84:
32298
32300
  transactionHash = _context2.sent;
32299
32301
  console.log(new Date().toUTCString(), 'Transaction!', getEtherscanAddress('tx/' + transactionHash, tx.chainId));
32300
32302
 
@@ -32352,20 +32354,20 @@ function sendBlockchainTransaction(provider, fromOrPlainPrivateKey, to, data, va
32352
32354
  }();
32353
32355
 
32354
32356
  setTimeout(timeout);
32355
- _context2.next = 92;
32357
+ _context2.next = 93;
32356
32358
  break;
32357
32359
 
32358
- case 89:
32359
- _context2.prev = 89;
32360
+ case 90:
32361
+ _context2.prev = 90;
32360
32362
  _context2.t29 = _context2["catch"](0);
32361
32363
  return _context2.abrupt("return", ko(_context2.t29));
32362
32364
 
32363
- case 92:
32365
+ case 93:
32364
32366
  case "end":
32365
32367
  return _context2.stop();
32366
32368
  }
32367
32369
  }
32368
- }, _callee2, null, [[0, 89], [25, 32]]);
32370
+ }, _callee2, null, [[0, 90], [25, 32]]);
32369
32371
  }));
32370
32372
 
32371
32373
  return function (_x, _x2) {