Skip to content

Commit

Permalink
Update Test ch-2 in SC Cairo and small fixed UI refresh data
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadai2010 committed Oct 10, 2024
1 parent 222fa98 commit 4322e8f
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 1,270 deletions.
2 changes: 2 additions & 0 deletions packages/nextjs/app/token-vendor/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const TokenVendor: NextPage = () => {
const { data: yourTokenSymbol } = useScaffoldReadContract({
contractName: "YourToken",
functionName: "symbol",
args: [],
});

const { data: yourTokenBalance } = useScaffoldReadContract({
Expand All @@ -46,6 +47,7 @@ const TokenVendor: NextPage = () => {
const { data: tokensPerEth } = useScaffoldReadContract({
contractName: "Vendor",
functionName: "tokens_per_eth",
args: [],
});

const { sendAsync: transferTokens } = useScaffoldWriteContract({
Expand Down
104 changes: 0 additions & 104 deletions packages/nextjs/hooks/scaffold-stark/__tests__/useAutoConnect.test.ts

This file was deleted.

Loading

0 comments on commit 4322e8f

Please sign in to comment.