rocketh 0.15.3 → 0.15.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # rocketh
2
2
 
3
+ ## 0.15.4
4
+
5
+ ### Patch Changes
6
+
7
+ - megaeth exception not required anymore
8
+
3
9
  ## 0.15.3
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rocketh",
3
- "version": "0.15.3",
3
+ "version": "0.15.4",
4
4
  "description": "deploy smart contract on ethereum-compatible networks",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/utils/eth.ts CHANGED
@@ -32,16 +32,7 @@ export async function getGasPriceEstimate(
32
32
  };
33
33
  const optionsResolved = options ? {...defaultOptions, ...options} : defaultOptions;
34
34
 
35
- let historicalBlocks: `0x${string}` | number = `0x${optionsResolved.blockCount.toString(16)}`;
36
-
37
- // for now megaeth do not support 0x prefixed string for block count
38
- // so we get the chain id
39
- const chainId = await provider.request({
40
- method: 'eth_chainId',
41
- });
42
- if (Number(chainId) == 6342) {
43
- historicalBlocks = optionsResolved.blockCount;
44
- }
35
+ const historicalBlocks = `0x${optionsResolved.blockCount.toString(16)}`;
45
36
 
46
37
  const rawFeeHistory = await provider.request({
47
38
  method: 'eth_feeHistory',