Skip to content

Commit 3722e3e

Browse files
committed
Fix cache key
1 parent 62df6d0 commit 3722e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/thirdweb/src/tokens/get-entrypoint-erc20.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
} from "./constants.js";
2424

2525
export async function getDeployedEntrypointERC20(options: ClientAndChain) {
26-
const cacheKey = `${options.chain.id}-${ENTRYPOINT_DEPLOY_URL}`;
26+
const cacheKey = `${options.chain.id}-${ENTRYPOINT_DEPLOY_URL}-${JSON.stringify(options.client)}`;
2727

2828
return withCache(
2929
async () => {
@@ -94,7 +94,7 @@ export async function getDeployedEntrypointERC20(options: ClientAndChain) {
9494
}
9595

9696
async function getDeployedContractFactory(options: ClientAndChain) {
97-
const cacheKey = `${options.chain.id}-${CONTRACT_FACTORY_DEPLOY_URL}`;
97+
const cacheKey = `${options.chain.id}-${CONTRACT_FACTORY_DEPLOY_URL}-${JSON.stringify(options.client)}`;
9898
return withCache(
9999
async () => {
100100
const contractMetadata = await fetchDeployMetadata({

0 commit comments

Comments
 (0)