diff --git a/packages/request-node/src/thegraph/TheGraphStorage.ts b/packages/request-node/src/thegraph/TheGraphStorage.ts index 1ab27c3207..e9cc0094ef 100644 --- a/packages/request-node/src/thegraph/TheGraphStorage.ts +++ b/packages/request-node/src/thegraph/TheGraphStorage.ts @@ -47,7 +47,11 @@ export class TheGraphStorage { async initialize(): Promise { 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',