From 601186763bbb3e39effbc65c4032599e3a708ca0 Mon Sep 17 00:00:00 2001 From: Logan Nguyen Date: Mon, 16 Sep 2024 20:54:17 -0500 Subject: [PATCH] fix: included `call.from` to the cacheKey for callConsensusNode() Signed-off-by: Logan Nguyen --- packages/relay/src/lib/eth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/relay/src/lib/eth.ts b/packages/relay/src/lib/eth.ts index 8ffd106460..3041358e9c 100644 --- a/packages/relay/src/lib/eth.ts +++ b/packages/relay/src/lib/eth.ts @@ -1863,7 +1863,7 @@ export class EthImpl implements Eth { data = crypto.createHash('sha1').update(call.data).digest('hex'); // NOSONAR } - const cacheKey = `${constants.CACHE_KEY.ETH_CALL}:.${call.to}.${data}`; + const cacheKey = `${constants.CACHE_KEY.ETH_CALL}:${call.from || ''}.${call.to}.${data}`; const cachedResponse = await this.cacheService.getAsync(cacheKey, EthImpl.ethCall, requestIdPrefix); if (cachedResponse != undefined) {