Skip to content

Commit

Permalink
Correction running lint --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Segue21 committed May 24, 2024
1 parent 5026a79 commit 8a75b21
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 43 deletions.
36 changes: 1 addition & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist",
"prepare": "husky install",
"prepush": "npm ci && npm run lint && npm test",
"test": "echo \"No tests specified\""
"deploy": "gh-pages -d dist"
},
"dependencies": {
"animate.css": "^4.1.1",
"axios": "^1.6.8",
"bootstrap": "^5.3.3",
"buffer": "^6.0.3",
"fhevm": "^0.4.0",
"fhevmjs": "^0.4.0",
"react": "^18.2.0",
"react-bootstrap": "^2.10.2",
"react-bootstrap-icons": "^1.11.4",
Expand All @@ -39,9 +37,7 @@
"eslint": "^8.44.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.1",
"fhevmjs": "^0.4.0",
"gh-pages": "^6.1.1",
"husky": "^8.0.0",
"ipfs-http-client": "^60.0.1",
"prettier": "^3.0.0",
"ts-node": "^10.9.2",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Blockchain/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function mintToken(cidHash: string, encryptedFileKey: Uint8Array[])
const tokenMintedEvent = await getEvent(txResponse, 'TokenMinted');
if (!tokenMintedEvent) throw new Error('TokenMinted event not found.');

const tokenId: number = Number(tokenMintedEvent.args[0]);
const tokenId = Number(tokenMintedEvent.args[0]);

return { tokenId: tokenId, cidHash: cidHash };
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Gallery/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const Gallery = () => {


const reEncryptedFileKey = await contract.reencrypt(tokenId, publicKey, signature);
let decryptedKey: bigint[] = [];
const decryptedKey: bigint[] = [];

reEncryptedFileKey.forEach((element) => {
if (element) {
Expand Down

0 comments on commit 8a75b21

Please sign in to comment.