evm-contracts-tools 0.0.85 → 0.0.86

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.
@@ -613,6 +613,9 @@ async function
613
613
  _price_gas,
614
614
  _gas_fee,
615
615
  _fee_priority,
616
+ _target_network,
617
+ _api_key_path,
618
+ _measure_unit,
616
619
  _retries_max) {
617
620
  let
618
621
  _msg;
@@ -842,9 +845,11 @@ function
842
845
  async function
843
846
  _method_check(
844
847
  _contract_method,
845
- _method) {
848
+ _method,
849
+ _contract) {
846
850
  let
847
- _method_object_get;
851
+ _method_object_get,
852
+ _msg;
848
853
  const
849
854
  _method_type =
850
855
  typeof(
@@ -1263,23 +1268,34 @@ async function
1263
1268
  _measure_unit =
1264
1269
  _measure_unit_check(
1265
1270
  _measure_unit);
1271
+ const
1272
+ _price_gas_check_args = [
1273
+ _price_gas,
1274
+ _gas_fee,
1275
+ _fee_priority,
1276
+ _target_network,
1277
+ _api_key_path,
1278
+ _measure_unit,
1279
+ _retries_max
1280
+ ];
1266
1281
  try {
1267
1282
  [ _price_gas,
1268
1283
  _gas_fee,
1269
1284
  _fee_priority ] =
1270
- await _price_gas_check(
1271
- _price_gas,
1272
- _gas_fee,
1273
- _fee_priority,
1274
- _retries_max);
1285
+ await _price_gas_check.apply(
1286
+ null,
1287
+ _price_gas_check_args);
1275
1288
  }
1276
1289
  catch(
1277
1290
  _error) {
1278
1291
  _msg =
1279
- "Error checking input gas price.";
1292
+ "Error running '_price_gas_check' " +
1293
+ "with arguments:";
1280
1294
  _msg_error(
1281
1295
  _msg,
1282
1296
  0);
1297
+ _echo2(
1298
+ _price_gas_check_args);
1283
1299
  _echo2(
1284
1300
  _error);
1285
1301
  throw _error;
@@ -1327,7 +1343,8 @@ async function
1327
1343
  const
1328
1344
  _method_check_args = [
1329
1345
  _contract_method,
1330
- _method
1346
+ _method,
1347
+ _contract
1331
1348
  ];
1332
1349
  try {
1333
1350
  _method =
@@ -1526,6 +1543,9 @@ function
1526
1543
  100;
1527
1544
  }
1528
1545
  }
1546
+ else if ( _retries_max_type === "number" ) {
1547
+ true;
1548
+ }
1529
1549
  else {
1530
1550
  _msg =
1531
1551
  "Variable '_retries_max' must be " +
@@ -1660,7 +1680,8 @@ async function
1660
1680
  const
1661
1681
  _method_check_args = [
1662
1682
  _contract_method,
1663
- _method
1683
+ _method,
1684
+ _contract
1664
1685
  ];
1665
1686
  try {
1666
1687
  _method =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  { "name": "evm-contracts-tools",
2
2
  "version":
3
- "0.0.85",
3
+ "0.0.86",
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": {
@@ -128,9 +128,9 @@
128
128
  "evm-transactions-tools":
129
129
  "^0.1.10000000000001",
130
130
  "evm-wallet":
131
- "npm:evm-wallet.js@^0.0.104",
131
+ "npm:evm-wallet.js@^0.0.105",
132
132
  "libevm":
133
- "^0.0.56",
133
+ "^0.0.57",
134
134
  "ws":
135
135
  "^8.21.0",
136
136
  "yargs":
@@ -142,11 +142,11 @@
142
142
  "evm-contracts-tools":
143
143
  "./evm-contracts-tools",
144
144
  "evm-wallet":
145
- "npm:evm-wallet.js@^0.0.104",
145
+ "npm:evm-wallet.js@^0.0.105",
146
146
  "evm-wallet.js":
147
- "npm:evm-wallet.js@^0.0.104",
147
+ "npm:evm-wallet.js@^0.0.105",
148
148
  "libevm":
149
- "^0.0.56"
149
+ "^0.0.57"
150
150
  },
151
151
  "type":
152
152
  "module",