Skip to content

Commit

Permalink
chore: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfschoen committed Oct 15, 2024
1 parent ed6c7b5 commit 4676085
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/hardhat/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"parser": "@typescript-eslint/parser",
"extends": ["plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-unused-vars": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"prettier/prettier": [
"warn",
"off",
{
"endOfLine": "auto"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"parser": "@typescript-eslint/parser",
"extends": ["next/core-web-vitals", "plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-unused-vars": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/ban-ts-comment": ["off"],
"prettier/prettier": [
"warn",
"off",
{
"endOfLine": "auto"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const PaymentPage: NextPage<PageProps> = ({ params }: PageProps) => {
const { targetNetwork } = useTargetNetwork();
// const encoder: TextEncoder = new global.TextEncoder();

// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => {
setReference(paymentReferenceParam);

Expand Down
6 changes: 3 additions & 3 deletions packages/nextjs/app/withdraw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { convertToBigint } from "~~/utils/convert";

interface WithdrawalRequest {
amount: string;
address: string;
address: bigint;
}

const Withdraw: NextPage = () => {
Expand All @@ -28,13 +28,13 @@ const Withdraw: NextPage = () => {
const requestId = await writeContractAsync({
functionName: "withdrawTo",
// TODO args: [encoder.encode(secret) ...
args: [secret, parseEther(amount), address],
args: [secret, parseEther(amount), convertToBigint(address), "ETH"],
});
console.log("⚡ Requesting new account", requestId, secret, parseEther(amount), address);
if (!requestId) {
return console.error("No request ID returned.");
}
openRequests.set(convertToBigint(requestId), { amount, address });
openRequests.set(convertToBigint(requestId), { amount, address: convertToBigint(address) });
};

useScaffoldWatchContractEvent({
Expand Down

0 comments on commit 4676085

Please sign in to comment.