Skip to content

Commit

Permalink
fix: included call.from to the cacheKey in callConsensusNode() (#…
Browse files Browse the repository at this point in the history
…2993)

fix: included `call.from` to the cacheKey for callConsensusNode()

Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node authored Sep 17, 2024
1 parent 3f1e91b commit 98727be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relay/src/lib/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,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) {
Expand Down

0 comments on commit 98727be

Please sign in to comment.