Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eenagy committed Jul 20, 2021
1 parent ebc95a5 commit f388ad7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 72 deletions.
63 changes: 0 additions & 63 deletions src/hooks/use-Intersection-observer.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions src/hooks/useSDK.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ReNFT } from "@renft/sdk";

import { useContractAddress } from "../contexts/StateProvider";
import UserContext from "../contexts/UserProvider";
import { getReNFT } from "../services/get-renft-instance";


export const useSDK = (): ReNFT | undefined => {
Expand All @@ -13,7 +12,7 @@ export const useSDK = (): ReNFT | undefined => {
const renft = useMemo(() => {
if (!signer) return;
if (!contractAddress) return;
return getReNFT(signer, contractAddress);
return new ReNFT(signer, contractAddress);
}, [contractAddress, signer]);

return renft;
Expand Down
7 changes: 0 additions & 7 deletions src/services/get-renft-instance.ts

This file was deleted.

0 comments on commit f388ad7

Please sign in to comment.