From bffa734bf9cd806f041021c97c85b66013df1eaf Mon Sep 17 00:00:00 2001 From: Alexandre ABRIOUX Date: Tue, 8 Feb 2022 14:37:01 +0100 Subject: [PATCH] fix(request-node): hexidecimal number for eth_feehistory blockcount --- packages/request-node/src/thegraph/TheGraphStorage.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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',