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 +6 -0
- package/package.json +1 -1
- package/src/utils/eth.ts +1 -10
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
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
|
-
|
|
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',
|