Skip to content

Commit

Permalink
Make endpoint generic
Browse files Browse the repository at this point in the history
  • Loading branch information
luistorres committed May 6, 2024
1 parent b77c5e7 commit 5019fff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/web-app/app/_server/sales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import { mainnet, sepolia } from 'viem/chains';
import { TProjectSaleDetails, TProjectStatus } from '../_types';
import { TInternalError } from './types';
import { evmGrantee, evmGranteePublicKey } from './wallet';

const config = process.env.NEXT_PUBLIC_ENABLE_TESTNETS
? {
Expand Down Expand Up @@ -69,8 +70,8 @@ export const saleDetails = async (): Promise<

return [
{
address: '0x2d49d75Ca03041051a7488e28fc98906ac711873',
publicKey: 'hPMGAtHXQlHhv30U8k8vQ7dyW70nm9OFLdA9lskwdRQ=',
address: evmGrantee.address,
publicKey: evmGranteePublicKey,
project: 'citizend',
status: contractResults[0],
rate: contractResults[1],
Expand Down
3 changes: 1 addition & 2 deletions packages/web-app/app/_ui/components/wallet-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { useDialog } from '@/app/_providers/dialog/context';
import { SettingsDialog } from './dialogs';
import { EdgeBorderButton, EdgeButton } from './edge';
import { Avatar } from './avatar';
import { useAccount, useBalance } from 'wagmi';
import { formatEther } from 'viem';
import { useAccount } from 'wagmi';
import { usePaymentTokenBalance } from '@/app/_lib/queries';

const ConnectedButton = () => {
Expand Down

0 comments on commit 5019fff

Please sign in to comment.