Skip to content

Commit

Permalink
Pass undefined to AlchemyProvider (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
portdeveloper authored Apr 7, 2024
1 parent b8b8257 commit ec1cd1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/pages/[contractAddress]/[network].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const ContractDetailPage = () => {
}

try {
const alchemyProvider = new AlchemyProvider(parseInt(network), scaffoldConfig.alchemyApiKey);
const alchemyProvider = new AlchemyProvider(undefined, scaffoldConfig.alchemyApiKey);
const requestFunc = ({ method, params }: { method: string; params: any }) =>
alchemyProvider.send(method, params);
const implementationAddress = await detectProxyTarget(contractAddress, requestFunc);
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Home: NextPage = () => {
const [isCheckingContractAddress, setIsCheckingContractAddress] = useState(false);
const [isContract, setIsContract] = useState(false);

const alchemyProvider = new AlchemyProvider(parseInt(network), scaffoldConfig.alchemyApiKey);
const alchemyProvider = new AlchemyProvider(undefined, scaffoldConfig.alchemyApiKey);
const requestFunc = ({ method, params }: { method: string; params: any }) => alchemyProvider.send(method, params);

const publicClient = usePublicClient({
Expand Down

0 comments on commit ec1cd1b

Please sign in to comment.