From d07e87d88efc3c577a341079c24949e17b78ecc8 Mon Sep 17 00:00:00 2001 From: Paul Cramer Date: Wed, 21 Aug 2024 21:13:54 -0700 Subject: [PATCH 1/5] Update --- bun.lockb | Bin 511644 -> 511644 bytes package.json | 2 +- tsconfig.json | 19 +++++++++++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/bun.lockb b/bun.lockb index 5115330a57cf457037bc1e5e8219b44c29f660dc..01c92f567b522b055439d295bac4436a4d9f7655 100755 GIT binary patch delta 175 zcmV;g08sy&ogbW?ACN8}<)NEDD7?qnoJ*aQ>HMw)g=d(9?e%dfNnl$1X0QK>u}=10 z0UeWpZ!429PY8o}U$=N)0Tqrwr#PPZ3A5fl_@h*zG=zHW2bH!=3>HMTlNS3)=A0kMnsLmjnc#2`b_O--!cL*h-Th?_ASe7du9tg b^Y(0A*6rE4Y_=j`-fBm-?W-NxKlT6s5$8|g diff --git a/package.json b/package.json index 35e2171..ee5d614 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test:coverage": "vitest run --coverage" }, "dependencies": { - "@coinbase/onchainkit": "^0.28.7", + "@coinbase/onchainkit": "^0.29.5", "next": "^14.2.5", "permissionless": "^0.1.26", "react": "^18", diff --git a/tsconfig.json b/tsconfig.json index 697ba86..3835058 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "es2020", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -11,7 +15,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "react-jsx", + "jsx": "preserve", "incremental": true, "plugins": [ { @@ -20,6 +24,13 @@ ], "baseUrl": "." }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] } From 40a0892e2fed0a9620a7a073c1fcec3def2e4866 Mon Sep 17 00:00:00 2001 From: Paul Cramer Date: Wed, 21 Aug 2024 21:14:56 -0700 Subject: [PATCH 2/5] remove --- tsconfig.json | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 3835058..697ba86 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,7 @@ { "compilerOptions": { "target": "es2020", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -15,7 +11,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve", + "jsx": "react-jsx", "incremental": true, "plugins": [ { @@ -24,13 +20,6 @@ ], "baseUrl": "." }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts" - ], - "exclude": [ - "node_modules" - ] + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] } From cac81396198b5728f9977ca6acae6770a731625a Mon Sep 17 00:00:00 2001 From: Paul Cramer Date: Wed, 21 Aug 2024 21:19:06 -0700 Subject: [PATCH 3/5] Remove old transaction component address param --- src/components/TransactionWrapper.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/TransactionWrapper.tsx b/src/components/TransactionWrapper.tsx index 286a06f..1bf8aa9 100644 --- a/src/components/TransactionWrapper.tsx +++ b/src/components/TransactionWrapper.tsx @@ -10,20 +10,14 @@ import type { TransactionError, TransactionResponse, } from '@coinbase/onchainkit/transaction'; -import type { Address, ContractFunctionParameters } from 'viem'; +import type { ContractFunctionParameters } from 'viem'; import { BASE_SEPOLIA_CHAIN_ID, clickContractABI, clickContractAddress, } from '../constants'; -type TransactionWrapperParams = { - address: Address; -}; - -export default function TransactionWrapper({ - address, -}: TransactionWrapperParams) { +export default function TransactionWrapper() { const contracts = [ { address: clickContractAddress, @@ -44,7 +38,6 @@ export default function TransactionWrapper({ return (
Date: Wed, 21 Aug 2024 21:19:28 -0700 Subject: [PATCH 4/5] update test --- src/components/TransactionWrapper.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TransactionWrapper.test.tsx b/src/components/TransactionWrapper.test.tsx index 14f3b3a..cedfe56 100644 --- a/src/components/TransactionWrapper.test.tsx +++ b/src/components/TransactionWrapper.test.tsx @@ -35,7 +35,7 @@ const renderWithProviders = (component: JSX.Element) => { describe('TransactionWrapper', () => { it('should renders', () => { - renderWithProviders(); + renderWithProviders(); const transaction = screen.getByText('Transact'); expect(transaction).toBeInTheDocument(); }); From 78d3e68b45fc6cad71c5a567257722ccca4462fe Mon Sep 17 00:00:00 2001 From: Paul Cramer Date: Wed, 21 Aug 2024 21:21:06 -0700 Subject: [PATCH 5/5] remove address --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index cab923f..d2ab17d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -38,7 +38,7 @@ export default function Page() {
{address ? ( - + ) : (