diff --git a/README.md b/README.md
index 761c669..27a744d 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,10 @@
Demo NFT collection for learning purposes.
+Deployed on [link](https://keen-swan-c84e28.netlify.app/)
+
+[](https://opensea.io/assets/matic/0x3cd266509d127d0eac42f4474f57d0526804b44e/16596)
+
## OpenSea Testnet
1. https://testnets.opensea.io/collection/squarenft-cd2xk3yh7v
diff --git a/client/public/index.html b/client/public/index.html
index ba0811d..f2674a7 100644
--- a/client/public/index.html
+++ b/client/public/index.html
@@ -1,17 +1,17 @@
-
-
-
-
-
EpicNFTs Collection
-
Each unique. Each beautiful. Discover your NFT today.
-
-
- {currentAccount ? (
-
- ) : (
-
- )}
-
- {mintedNFT} EpicNFTs on {maxNFT} already minted
-
- {link && (
-
- Hey there! We've minted your NFT. It may be blank right now.
- It can take a max of 10 min to show up on OpenSea. Here's the{" "}
-
- link
-
-
- )}
-
-
+ return (
+
+
+
+
EpicNFTs Collection
+
Each unique. Each beautiful. Discover your NFT today.
+
+
+ {currentAccount ? (
+
+ ) : (
+
+ )}
+
+ {mintedNFT} EpicNFTs on {maxNFT} already minted
+
+ {link && (
+
+ Hey there! We've minted your NFT. It may be blank right now.
+ It can take a max of 10 min to show up on OpenSea. Here's the{" "}
+
+ link
+
+
+ )}
+
+
+
+
-
-
- );
+ );
}
export default App;
diff --git a/client/src/App.test.js b/client/src/App.test.js
index 1f03afe..ba45315 100644
--- a/client/src/App.test.js
+++ b/client/src/App.test.js
@@ -1,8 +1,8 @@
-import { render, screen } from '@testing-library/react';
+import {render, screen} from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
- render(
);
- const linkElement = screen.getByText(/learn react/i);
- expect(linkElement).toBeInTheDocument();
+ render(
);
+ const linkElement = screen.getByText(/learn react/i);
+ expect(linkElement).toBeInTheDocument();
});
diff --git a/client/src/index.css b/client/src/index.css
index a83ad4c..1fa6859 100644
--- a/client/src/index.css
+++ b/client/src/index.css
@@ -6,13 +6,13 @@ html {
body {
padding: 0;
font-family: -apple-system, Inter, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
- 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
- sans-serif;
+ 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
+ sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
- monospace;
+ monospace;
}
\ No newline at end of file
diff --git a/client/src/index.js b/client/src/index.js
index 37074f2..fc659bc 100644
--- a/client/src/index.js
+++ b/client/src/index.js
@@ -1,14 +1,14 @@
import React from "react";
import ReactDOM from "react-dom";
-import reportWebVitals from "./reportWebVitals";
import App from "./App";
import "./index.css";
+import reportWebVitals from "./reportWebVitals";
ReactDOM.render(
-
-
- ,
- document.getElementById("root")
+
+
+ ,
+ document.getElementById("root")
);
reportWebVitals();
diff --git a/client/src/lib/eth.js b/client/src/lib/eth.js
index 630e391..a3f0dd7 100644
--- a/client/src/lib/eth.js
+++ b/client/src/lib/eth.js
@@ -1,16 +1,16 @@
const getEth = () => {
- const { ethereum } = window;
- if (!ethereum) {
- alert("Wallet not detected. Make sure you have Metamask extension installed and activated.");
- }
- return ethereum;
+ const {ethereum} = window;
+ if (!ethereum) {
+ alert("Wallet not detected. Make sure you have Metamask extension installed and activated.");
+ }
+ return ethereum;
};
export const withEth = (f) => async (props) => {
- try {
- const ethereum = getEth();
- await f(ethereum, props);
- } catch (error) {
- console.error(error);
- }
+ try {
+ const ethereum = getEth();
+ await f(ethereum, props);
+ } catch (error) {
+ console.error(error);
+ }
};
diff --git a/client/src/reportWebVitals.js b/client/src/reportWebVitals.js
index 5253d3a..14ba227 100644
--- a/client/src/reportWebVitals.js
+++ b/client/src/reportWebVitals.js
@@ -1,13 +1,13 @@
const reportWebVitals = onPerfEntry => {
- if (onPerfEntry && onPerfEntry instanceof Function) {
- import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
- getCLS(onPerfEntry);
- getFID(onPerfEntry);
- getFCP(onPerfEntry);
- getLCP(onPerfEntry);
- getTTFB(onPerfEntry);
- });
- }
+ if (onPerfEntry && onPerfEntry instanceof Function) {
+ import('web-vitals').then(({getCLS, getFID, getFCP, getLCP, getTTFB}) => {
+ getCLS(onPerfEntry);
+ getFID(onPerfEntry);
+ getFCP(onPerfEntry);
+ getLCP(onPerfEntry);
+ getTTFB(onPerfEntry);
+ });
+ }
};
export default reportWebVitals;
diff --git a/client/src/setupTests.js b/client/src/setupTests.js
index 8f2609b..b28b910 100644
--- a/client/src/setupTests.js
+++ b/client/src/setupTests.js
@@ -2,4 +2,4 @@
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
-import '@testing-library/jest-dom';
+import '@testing-library/jest-dom';
\ No newline at end of file
diff --git a/contracts/EpicNFT.sol b/contracts/EpicNFT.sol
index 8b90c18..d530da5 100644
--- a/contracts/EpicNFT.sol
+++ b/contracts/EpicNFT.sol
@@ -11,83 +11,82 @@ contract EpicNFT is ERC721URIStorage {
Counters.Counter private _tokenIds;
event NewEpicNFTMinted(address sender, uint256 tokenID);
- uint256 private maxTokenAllowed = 50;
+
+ uint256 private constant MAX_NFT_ALLOWED = 50;
constructor() ERC721("SquareNFT", "SQUARE") {
console.log("My first NFT contract! EPIC!!!");
}
- string baseSvg1 =
- "