diff --git a/packages/nextjs/hooks/scaffold-eth/useAutoConnect.ts b/packages/nextjs/hooks/scaffold-eth/useAutoConnect.ts index 36260f215..2f8c75d2d 100644 --- a/packages/nextjs/hooks/scaffold-eth/useAutoConnect.ts +++ b/packages/nextjs/hooks/scaffold-eth/useAutoConnect.ts @@ -6,7 +6,7 @@ import scaffoldConfig from "~~/scaffold.config"; import { burnerWalletId } from "~~/services/web3/wagmi-burner/BurnerConnector"; import { getTargetNetworks } from "~~/utils/scaffold-eth"; -const SCAFFOLD_WALLET_STROAGE_KEY = "scaffoldEth2.wallet"; +const SCAFFOLD_WALLET_STORAGE_KEY = "scaffoldEth2.wallet"; const WAGMI_WALLET_STORAGE_KEY = "wagmi.wallet"; // ID of the SAFE connector instance @@ -59,7 +59,7 @@ const getInitialConnector = ( */ export const useAutoConnect = (): void => { const wagmiWalletValue = useReadLocalStorage(WAGMI_WALLET_STORAGE_KEY); - const [walletId, setWalletId] = useLocalStorage(SCAFFOLD_WALLET_STROAGE_KEY, wagmiWalletValue ?? ""); + const [walletId, setWalletId] = useLocalStorage(SCAFFOLD_WALLET_STORAGE_KEY, wagmiWalletValue ?? ""); const connectState = useConnect(); const accountState = useAccount(); diff --git a/packages/nextjs/hooks/scaffold-eth/useDeployedContractInfo.ts b/packages/nextjs/hooks/scaffold-eth/useDeployedContractInfo.ts index 55d6ef158..f82dce14a 100644 --- a/packages/nextjs/hooks/scaffold-eth/useDeployedContractInfo.ts +++ b/packages/nextjs/hooks/scaffold-eth/useDeployedContractInfo.ts @@ -5,7 +5,8 @@ import { usePublicClient } from "wagmi"; import { Contract, ContractCodeStatus, ContractName, contracts } from "~~/utils/scaffold-eth/contract"; /** - * Gets the matching contract info for the provided contract name from the contracts present in deployedContracts.ts and externalContracts.ts corrsponding to targetNetworks configured in scaffold.congfig.ts + * Gets the matching contract info for the provided contract name from the contracts present in deployedContracts.ts + * and externalContracts.ts corresponding to targetNetworks configured in scaffold.config.ts */ export const useDeployedContractInfo = (contractName: TContractName) => { const isMounted = useIsMounted(); diff --git a/packages/nextjs/hooks/scaffold-eth/useScaffoldContract.ts b/packages/nextjs/hooks/scaffold-eth/useScaffoldContract.ts index 61cd6fa4f..a97d67416 100644 --- a/packages/nextjs/hooks/scaffold-eth/useScaffoldContract.ts +++ b/packages/nextjs/hooks/scaffold-eth/useScaffoldContract.ts @@ -5,7 +5,8 @@ import { useDeployedContractInfo } from "~~/hooks/scaffold-eth"; import { Contract, ContractName } from "~~/utils/scaffold-eth/contract"; /** - * Gets an viem instance of the contract present in deployedContracts.ts or externalContracts.ts corrsponding to targetNetworks configured in scaffold.congfig.ts. Optional walletClient can be passed for doing write transactions. + * Gets a viem instance of the contract present in deployedContracts.ts or externalContracts.ts corresponding to + * targetNetworks configured in scaffold.config.ts. Optional walletClient can be passed for doing write transactions. * @param config - The config settings for the hook * @param config.contractName - deployed contract name * @param config.walletClient - optional walletClient from wagmi useWalletClient hook can be passed for doing write transactions diff --git a/packages/nextjs/hooks/scaffold-eth/useScaffoldContractRead.ts b/packages/nextjs/hooks/scaffold-eth/useScaffoldContractRead.ts index 979a7d979..39c0cb13e 100644 --- a/packages/nextjs/hooks/scaffold-eth/useScaffoldContractRead.ts +++ b/packages/nextjs/hooks/scaffold-eth/useScaffoldContractRead.ts @@ -10,7 +10,8 @@ import { } from "~~/utils/scaffold-eth/contract"; /** - * Wrapper around wagmi's useContractRead hook which automatically loads (by name) the contract ABI and address from the contracts present in deployedContracts.ts & externalContracts.ts corrsponding to targetNetworks configured in scaffold.congfig.ts + * Wrapper around wagmi's useContractRead hook which automatically loads (by name) the contract ABI and address from + * the contracts present in deployedContracts.ts & externalContracts.ts corresponding to targetNetworks configured in scaffold.config.ts * @param config - The config settings, including extra wagmi configuration * @param config.contractName - deployed contract name * @param config.functionName - name of the function to be called diff --git a/packages/nextjs/hooks/scaffold-eth/useScaffoldContractWrite.ts b/packages/nextjs/hooks/scaffold-eth/useScaffoldContractWrite.ts index f72d11273..e1278d84d 100644 --- a/packages/nextjs/hooks/scaffold-eth/useScaffoldContractWrite.ts +++ b/packages/nextjs/hooks/scaffold-eth/useScaffoldContractWrite.ts @@ -10,7 +10,8 @@ import { ContractAbi, ContractName, UseScaffoldWriteConfig } from "~~/utils/scaf type UpdatedArgs = Parameters>["writeAsync"]>[0]; /** - * Wrapper around wagmi's useContractWrite hook which automatically loads (by name) the contract ABI and address from the contracts present in deployedContracts.ts & externalContracts.ts corrsponding to targetNetworks configured in scaffold.congfig.ts + * Wrapper around wagmi's useContractWrite hook which automatically loads (by name) the contract ABI and address from + * the contracts present in deployedContracts.ts & externalContracts.ts corresponding to targetNetworks configured in scaffold.config.ts * @param config - The config settings, including extra wagmi configuration * @param config.contractName - contract name * @param config.functionName - name of the function to be called diff --git a/packages/nextjs/hooks/scaffold-eth/useScaffoldEventSubscriber.ts b/packages/nextjs/hooks/scaffold-eth/useScaffoldEventSubscriber.ts index 2389e5ee6..389553c6b 100644 --- a/packages/nextjs/hooks/scaffold-eth/useScaffoldEventSubscriber.ts +++ b/packages/nextjs/hooks/scaffold-eth/useScaffoldEventSubscriber.ts @@ -6,7 +6,8 @@ import { addIndexedArgsToEvent, useDeployedContractInfo } from "~~/hooks/scaffol import { ContractAbi, ContractName, UseScaffoldEventConfig } from "~~/utils/scaffold-eth/contract"; /** - * Wrapper around wagmi's useEventSubscriber hook which automatically loads (by name) the contract ABI and address from the contracts present in deployedContracts.ts & externalContracts.ts + * Wrapper around wagmi's useEventSubscriber hook which automatically loads (by name) the contract ABI and + * address from the contracts present in deployedContracts.ts & externalContracts.ts * @param config - The config settings * @param config.contractName - deployed contract name * @param config.eventName - name of the event to listen for @@ -23,9 +24,9 @@ export const useScaffoldEventSubscriber = < const { data: deployedContractData } = useDeployedContractInfo(contractName); const { targetNetwork } = useTargetNetwork(); - const addInexedArgsToLogs = (logs: Log[]) => logs.map(addIndexedArgsToEvent); + const addIndexedArgsToLogs = (logs: Log[]) => logs.map(addIndexedArgsToEvent); const listenerWithIndexedArgs = (logs: Log[]) => - listener(addInexedArgsToLogs(logs) as Parameters[0]); + listener(addIndexedArgsToLogs(logs) as Parameters[0]); return useContractEvent({ address: deployedContractData?.address, diff --git a/packages/nextjs/hooks/scaffold-eth/useTransactor.tsx b/packages/nextjs/hooks/scaffold-eth/useTransactor.tsx index da26873e4..b725f344f 100644 --- a/packages/nextjs/hooks/scaffold-eth/useTransactor.tsx +++ b/packages/nextjs/hooks/scaffold-eth/useTransactor.tsx @@ -31,7 +31,7 @@ const TxnNotification = ({ message, blockExplorerLink }: { message: string; bloc /** * Runs Transaction passed in to returned function showing UI feedback. * @param _walletClient - Optional wallet client to use. If not provided, will use the one from useWalletClient. - * @returns function that takes in transaction function as callback, shows UI feedback for transcation and returns a promise of the transaction hash + * @returns function that takes in transaction function as callback, shows UI feedback for transaction and returns a promise of the transaction hash */ export const useTransactor = (_walletClient?: WalletClient): TransactionFunc => { let walletClient = _walletClient; diff --git a/packages/nextjs/pages/blockexplorer/index.tsx b/packages/nextjs/pages/blockexplorer/index.tsx index a5ee43ce6..2ee6487b8 100644 --- a/packages/nextjs/pages/blockexplorer/index.tsx +++ b/packages/nextjs/pages/blockexplorer/index.tsx @@ -8,7 +8,7 @@ import { useFetchBlocks } from "~~/hooks/scaffold-eth"; import { useTargetNetwork } from "~~/hooks/scaffold-eth/useTargetNetwork"; import { notification } from "~~/utils/scaffold-eth"; -const Blockexplorer: NextPage = () => { +const BlockExplorer: NextPage = () => { const { blocks, transactionReceipts, currentPage, totalBlocks, setCurrentPage, error } = useFetchBlocks(); const { targetNetwork } = useTargetNetwork(); @@ -59,4 +59,4 @@ const Blockexplorer: NextPage = () => { ); }; -export default Blockexplorer; +export default BlockExplorer; diff --git a/packages/nextjs/services/web3/wagmi-burner/BurnerConnector.ts b/packages/nextjs/services/web3/wagmi-burner/BurnerConnector.ts index 42ec56ca4..311c6d917 100644 --- a/packages/nextjs/services/web3/wagmi-burner/BurnerConnector.ts +++ b/packages/nextjs/services/web3/wagmi-burner/BurnerConnector.ts @@ -38,11 +38,11 @@ export class BurnerConnector extends Connector