Skip to content

Commit

Permalink
fix: allow quicknode on get client (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Jan 29, 2025
1 parent 1da5daf commit ad14a20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
17 changes: 3 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
"format": "biome check --write",
"prepublishOnly": "npm run build"
},
"files": [
"src/*.ts",
"dist/lib*",
"dist/cli*"
],
"files": ["src/*.ts", "dist/lib*", "dist/cli*"],
"bin": "./dist/cli.js",
"main": "./dist/lib.js",
"module": "./dist/lib.mjs",
Expand Down Expand Up @@ -47,19 +43,12 @@
"dotenv": "^16.4.7"
},
"tsup": {
"entry": [
"src/action.ts",
"src/lib.ts",
"src/cli.ts"
],
"entry": ["src/action.ts", "src/lib.ts", "src/cli.ts"],
"splitting": false,
"sourcemap": false,
"clean": true,
"dts": true,
"treeshake": true,
"format": [
"esm",
"cjs"
]
"format": ["esm", "cjs"]
}
}
2 changes: 2 additions & 0 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ export function getClient(
if (!clientCache[chainId] || forceRebuildClient) {
const rpcURL = getRPCUrl(chainId as keyof typeof ChainList, {
alchemyKey: process.env.ALCHEMY_API_KEY,
quicknodeEndpointName: process.env.QUICKNODE_ENDPOINT_NAME,
quicknodeToken: process.env.QUICKNODE_TOKEN,
});

clientCache[chainId] = createClient({
Expand Down

0 comments on commit ad14a20

Please sign in to comment.