Skip to content

Commit

Permalink
fix(request-node): hexidecimal number for eth_feehistory blockcount
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Feb 8, 2022
1 parent b941252 commit bffa734
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/request-node/src/thegraph/TheGraphStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ export class TheGraphStorage {
async initialize(): Promise<void> {
await this.ipfsStorage.initialize();
try {
await this.provider.send('eth_feeHistory', [1, 'latest', []]);
await this.provider.send('eth_feeHistory', [
utils.hexStripZeros(utils.hexlify(1)),
'latest',
[],
]);
} catch (e) {
this.logger.warn(
'This RPC provider does not support the "eth_feeHistory" method: switching to legacy gas price',
Expand Down

0 comments on commit bffa734

Please sign in to comment.