evm-contracts-tools 0.0.87 → 0.0.89

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.
@@ -633,6 +633,9 @@ async function
633
633
  _price_gas =
634
634
  0;
635
635
  }
636
+ else if ( _price_gas_type === "number" ) {
637
+ true;
638
+ }
636
639
  else if ( _price_gas_type === "string" ) {
637
640
  if ( 0 < _price_gas.length ) {
638
641
  const
@@ -920,7 +923,7 @@ function
920
923
  _msg;
921
924
  const
922
925
  _default =
923
- 100000000;
926
+ 10000000000000;
924
927
  _price_gas_max_get =
925
928
  false;
926
929
  const
@@ -1221,8 +1224,9 @@ async function
1221
1224
  }
1222
1225
  // An hardcoded gas limit parameter.
1223
1226
  _gas_limit =
1224
- Math.floor(
1225
- 15803479 * 12 / 10);
1227
+ 100000000000000000;
1228
+ // Math.floor(
1229
+ // 15803479 * 12 / 10);
1226
1230
  // 17000000;
1227
1231
  // Setting as gas limit double
1228
1232
  // of how much you wanna spend.
@@ -1377,6 +1381,8 @@ async function
1377
1381
  _msg_error(
1378
1382
  _msg,
1379
1383
  0);
1384
+ _echo2(
1385
+ _error);
1380
1386
  const
1381
1387
  _code =
1382
1388
  _error[
@@ -1392,6 +1398,8 @@ async function
1392
1398
  throw _msg;
1393
1399
  }
1394
1400
  else {
1401
+ _echo2(
1402
+ _error);
1395
1403
  throw _error;
1396
1404
  }
1397
1405
  }
@@ -1400,14 +1408,15 @@ async function
1400
1408
 
1401
1409
  async function
1402
1410
  _call_price_gas_auto(
1411
+ _retries_max,
1403
1412
  _measure_unit,
1404
1413
  _msg_value,
1405
1414
  _method,
1406
- _method_args) {
1415
+ _method_args,
1416
+ _tx) {
1407
1417
  let
1408
1418
  _amount,
1409
- _msg,
1410
- _tx;
1419
+ _msg;
1411
1420
  const
1412
1421
  _send_opts =
1413
1422
  {};
@@ -1457,13 +1466,30 @@ async function
1457
1466
  _error) {
1458
1467
  _msg =
1459
1468
  "Error sending transaction to the " +
1460
- "network using the 'send' method" +
1469
+ "network using the 'send' method " +
1461
1470
  "of the Ethers method object.";
1462
1471
  _msg_error(
1463
1472
  _msg,
1464
1473
  0);
1465
- _echo2(
1466
- _error);
1474
+ const
1475
+ _code =
1476
+ _error[
1477
+ "info"][
1478
+ "error"][
1479
+ "code"];
1480
+ if ( _code === -32000 ) {
1481
+ _msg =
1482
+ _error[
1483
+ "info"][
1484
+ "error"][
1485
+ "message"];
1486
+ throw _msg;
1487
+ }
1488
+ else {
1489
+ _echo2(
1490
+ _error);
1491
+ throw _error;
1492
+ }
1467
1493
  throw _error;
1468
1494
  }
1469
1495
  return _tx;
@@ -1771,12 +1797,6 @@ async function
1771
1797
  ];
1772
1798
  }
1773
1799
 
1774
- function
1775
- _receipt_cost_get(
1776
- _receipt) {
1777
- true;
1778
- }
1779
-
1780
1800
  function
1781
1801
  _retries_max_check(
1782
1802
  _retries_max) {
@@ -1839,6 +1859,8 @@ function
1839
1859
  _receipt_display(
1840
1860
  _receipt,
1841
1861
  _measure_unit) {
1862
+ let
1863
+ _msg;
1842
1864
  _msg =
1843
1865
  `Transaction hash: '${_receipt.hash}'.`;
1844
1866
  _msg_info(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  { "name": "evm-contracts-tools",
2
2
  "version":
3
- "0.0.87",
3
+ "0.0.89",
4
4
  "description":
5
5
  "JavaScript programs and libraries to enable seamless development of native computer applications designed to interact with Ethereum Virtual Machine-compatible networks.",
6
6
  "funding": {
@@ -100,11 +100,11 @@
100
100
  },
101
101
  "devDependencies": {
102
102
  "crash-js-webpack":
103
- "^0.0.89",
103
+ "^0.0.93",
104
104
  "brace-expansion":
105
105
  "^5.0.9",
106
106
  "eslint":
107
- "^10.14.0",
107
+ "^10.15.0",
108
108
  "@eslint/js":
109
109
  "^10.0.1",
110
110
  "fast-uri":
@@ -120,17 +120,17 @@
120
120
  },
121
121
  "dependencies": {
122
122
  "libcrash-js":
123
- "npm:crash-js@^1000000000000026.1000000000000001.1000000000000001",
123
+ "npm:crash-js@^1000000000000031.1000000000000001.1000000000000001",
124
124
  "ethers":
125
125
  "^6.13.2",
126
126
  "evm-chains-info":
127
- "^0.0.41",
127
+ "^0.0.44",
128
128
  "evm-transactions-tools":
129
- "^0.1.10000000000001",
129
+ "^0.1.100000000000001",
130
130
  "evm-wallet":
131
- "npm:evm-wallet.js@^0.0.105",
131
+ "npm:evm-wallet.js@^0.0.109",
132
132
  "libevm":
133
- "^0.0.57",
133
+ "^0.0.60",
134
134
  "ws":
135
135
  "^8.21.0",
136
136
  "yargs":
@@ -138,15 +138,15 @@
138
138
  },
139
139
  "overrides": {
140
140
  "libcrash-js":
141
- "npm:crash-js@^1000000000000026.1000000000000001.1000000000000001",
141
+ "npm:crash-js@^1000000000000031.1000000000000001.1000000000000001",
142
142
  "evm-contracts-tools":
143
143
  "./evm-contracts-tools",
144
144
  "evm-wallet":
145
- "npm:evm-wallet.js@^0.0.105",
145
+ "npm:evm-wallet.js@^0.0.109",
146
146
  "evm-wallet.js":
147
- "npm:evm-wallet.js@^0.0.105",
147
+ "npm:evm-wallet.js@^0.0.109",
148
148
  "libevm":
149
- "^0.0.57"
149
+ "^0.0.60"
150
150
  },
151
151
  "type":
152
152
  "module",