Skip to content

Commit

Permalink
chore(linter): fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Nov 24, 2023
1 parent 0b71ce6 commit 413f1b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 9 additions & 3 deletions examples/taco/nextjs/src/hooks/useTaco.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
conditions,
decrypt,
Domain,
encrypt,
getPorterUri,
initialize,
ThresholdMessageKit,
} from '@nucypher/taco';
import { Condition } from '@nucypher/taco/src/conditions';
import { ethers } from 'ethers';
import { useCallback, useEffect, useState } from 'react';

Expand All @@ -29,15 +29,21 @@ export default function useTaco({
async (encryptedBytes: Uint8Array, signer?: ethers.Signer) => {
if (!isInit || !provider) return;
const messageKit = ThresholdMessageKit.fromBytes(encryptedBytes);
return decrypt(provider, domain, messageKit, getPorterUri(domain), signer);
return decrypt(
provider,
domain,
messageKit,
getPorterUri(domain),
signer,
);
},
[isInit, provider, domain],
);

const encryptDataToBytes = useCallback(
async (
message: string,
condition: Condition,
condition: conditions.Condition,
encryptorSigner: ethers.Signer,
) => {
if (!isInit || !provider) return;
Expand Down
8 changes: 7 additions & 1 deletion examples/taco/react/src/hooks/useTaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ export default function useTaco({
async (encryptedBytes: Uint8Array, signer?: ethers.Signer) => {
if (!isInit || !provider) return;
const messageKit = ThresholdMessageKit.fromBytes(encryptedBytes);
return decrypt(provider, domain, messageKit, getPorterUri(domain), signer);
return decrypt(
provider,
domain,
messageKit,
getPorterUri(domain),
signer,
);
},
[isInit, provider, domain],
);
Expand Down

0 comments on commit 413f1b5

Please sign in to comment.