Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa Mercado authored and Vanessa Mercado committed Aug 17, 2022
1 parent c509add commit d31e703
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 36 deletions.
5 changes: 0 additions & 5 deletions pages/my-events-ts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const MyEvents = ({ data }: MyEventsProps) => {
const checkIfUserHoldsTicket = async (addy: string) => {
try {
let confirmOwnership = await contractProvider.getConfirmOwnership(addy);
console.log("confirmOwnership: ", confirmOwnership);
} catch (e) {
console.log(e);
}
Expand All @@ -72,7 +71,6 @@ const MyEvents = ({ data }: MyEventsProps) => {
if (!address) return;
const checkAddress = async () => {
setAddressSignedIn(address);
console.log("address", address);
};

checkAddress();
Expand All @@ -89,9 +87,6 @@ const MyEvents = ({ data }: MyEventsProps) => {
name,
token_id: tokenId,
} = data?.assets[0];
console.log("image_original_url", imageOriginalUrl);
console.log("name", name);
console.log("tokenId", tokenId);
});
});

Expand Down
27 changes: 0 additions & 27 deletions pages/my-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ const MyEventss = () => {
const handleCheckIn = async (tokenId) => {
if (!addressSignedIn) return;
try {
console.log("ticket ID to be checked in: ", tokenId);
console.log("... checking in");
let checkInTxn = await contractSigner.checkIn(tokenId);
await checkInTxn.wait();
setIsUserCheckedIn(true);
Expand Down Expand Up @@ -70,8 +68,6 @@ const MyEventss = () => {

// decode base64 string, remove header
let decodedObject = JSON.parse(atob(base64string));
console.log("decodedObject: ", decodedObject);
console.log(" IMAGE 🅿️ 🅿️ 🅿️ ", decodedObject.image);
if (
decodedObject.image ===
"ipfs://QmbeECCAZnZdkdF2yVu23DQHsu4uc3WSnsMS1gnwP4j8L3"
Expand Down Expand Up @@ -110,29 +106,6 @@ const MyEventss = () => {
checkAddress();
}, [address]);

// useEffect(() => {
// if (!address) return;
// console.log(address);

// const openSeaQuery = `https://rinkeby-api.opensea.io/api/v1/assets?owner=${address}&asset_contract_address=${CONTRACT_ADDRESS}`;

// console.log(" QUERY 🦭", openSeaQuery);
// fetch(
// `https://rinkeby-api.opensea.io/api/v1/assets?owner=${address}&asset_contract_address=${CONTRACT_ADDRESS}`
// )
// .then((response) => response.json())
// .then((data) => {
// console.log(" 🥰🥰🥰🥰 TOTAL IS: ", data.assets.length);

// console.log(" 🥰🥰🥰🥰 DATA: ", data);

// if (data.assets?.length) {
// setTickets(data.assets);
// }
// })
// .catch((e) => console.log(e));
// }, [address]);

if (!addressSignedIn) {
return (
<Layout title="my events | m3mento">
Expand Down
2 changes: 0 additions & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ const Navbar = () => {
if (!contractProvider) return;
try {
const ownerOfContract = await contractProvider.owner()
console.log('owner of contract:', ownerOfContract)
console.log('address', address)
if (address === ownerOfContract) {
setIsAdmin(true)
} else {
Expand Down
2 changes: 0 additions & 2 deletions src/components/Navbar1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ const Layout = ({ children, title = 'm3mento' }: Props) => {
if (!contractProvider) return;
try {
const ownerOfContract = await contractProvider.owner()
console.log('owner of contract:', ownerOfContract)
console.log('address', address)
if (address === ownerOfContract) {
setIsAdmin(true)
} else {
Expand Down

0 comments on commit d31e703

Please sign in to comment.