Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adriandelgg committed Feb 1, 2022
1 parent c2d2a8d commit 195bd17
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 11 deletions.
3 changes: 1 addition & 2 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
Expand All @@ -23,6 +21,7 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
tsconfig.tsbuildinfo

# local env files
.env
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/helpers/useIPFS.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { create } from "ipfs-http-client";
import axios from "axios";
import { create } from 'ipfs-http-client';
import axios from 'axios';

const ipfs = create({ host: "ipfs.infura.io", port: 5001, protocol: "https" });
const ipfs = create({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' });

/**
* Uploads the file to IPFS.
Expand All @@ -25,14 +25,14 @@ export async function uploadIPFS(fileBuffer: Buffer) {
*/
export async function pinNFT(hash: string) {
try {
const url = "https://api.pinata.cloud/pinning/pinByHash";
const url = 'https://api.pinata.cloud/pinning/pinByHash';
await axios.post(
url,
{ hashToPin: hash },
{
headers: {
pinata_api_key: process.env.NEXT_PUBLIC_PINATA_API_KEY,
pinata_secret_api_key: process.env.NEXT_PUBLIC_PINATA_SECRET_KEY
pinata_api_key: process.env.NEXT_PUBLIC_PINATA_API_KEY!,
pinata_secret_api_key: process.env.NEXT_PUBLIC_PINATA_SECRET_KEY!
}
}
);
Expand Down
34 changes: 32 additions & 2 deletions hardhat/.gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,42 @@
node_modules
.env
# dependencies
/node_modules
/.pnp
.pnp.js

# production
/build

#Hardhat files
cache
artifacts
typechain-types
typechain

# Zero-Installs (Yarn v2)
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Zero-Installs (Yarn v2)
.yarn/*
!.yarn/cache
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-ether-dapp",
"description": "A template for building Full-Stack Blockchain Dapps using Next.js (React), TypeScript, Tailwind CSS, Hardhat, Solidity, and many more!",
"version": "1.1.61",
"version": "1.1.62",
"author": "Adrian Delgado",
"license": "MIT",
"bin": "./bin/index.js",
Expand Down

0 comments on commit 195bd17

Please sign in to comment.