Skip to content

Commit

Permalink
wagmi fix all data hooked up
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Jack committed Sep 18, 2023
1 parent 73e8da3 commit 73e1861
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/app/src/hooks/useContractCalls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const useContractCalls = () => {
const supportFlow = async () => {};
const supportFlowWithSwap = async () => {
console.log('hit');
const sdk = new GoodCollectiveSDK('31337', publicClient, 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9');

const sdk = new GoodCollectiveSDK('42220', publicClient, 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9');
if (!address) return;
await sdk.supportFlowWithSwap(
walletClient?.signTransaction as any,
Expand Down
15 changes: 13 additions & 2 deletions packages/app/src/pages/WalletProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ function WalletProfilePage() {
<Layout>
<>
{isLoading ? (
<p>Loading....</p>
) : (
subData?.map((t: any, index: number) => (
<WalletProfile
key={index}
Expand All @@ -48,6 +46,19 @@ function WalletProfilePage() {
type={WalletProfileTypes.both}
/>
))
) : (
<WalletProfile
imageUrl={FruitDoveUri}
firstName={'John'}
lastName={'Doe'}
actionsPerformed={0}
amountReceived={704000}
collectivesTotal={2}
creationDate={'January 24, 2023'}
amountDonated={0}
peopleSupported={0}
type={WalletProfileTypes.empty}
/>
)}
</>
</Layout>
Expand Down

0 comments on commit 73e1861

Please sign in to comment.