Skip to content

Commit

Permalink
fixed recent txs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Mar 11, 2024
1 parent d273a75 commit eab6ef2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/hooks/useGetRecentTransactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import useGetAddress from '@/app/hooks/useGetAddress';
import { Alchemy, Network } from 'alchemy-sdk';

const useGetRecentTransactions = async () => {
const address = useGetAddress();
try {
const config = {
apiKey: process.env.NEXT_PUBLIC_ALCHEMY_API_KEY,
Expand All @@ -12,7 +13,7 @@ const useGetRecentTransactions = async () => {

const data = await alchemy.core.getAssetTransfers({
fromBlock: '0x0',
fromAddress: '0x6b3C5DeBB67505dfD66F3b3b80D1d24DF8DA886D',
fromAddress: address,
category: ['erc20'],
withMetadata: true,
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Page = () => {
})
useEffect(() => {
if (zeroDevReady && authenticated && user) {
console.log("login user",user)

// set user address
dispatch(setAddress(user?.wallet?.address ?? ''));

Expand Down

0 comments on commit eab6ef2

Please sign in to comment.