diff --git a/examples/taco/nextjs/src/hooks/useTaco.ts b/examples/taco/nextjs/src/hooks/useTaco.ts index 082ff1b23..be78a7bb5 100644 --- a/examples/taco/nextjs/src/hooks/useTaco.ts +++ b/examples/taco/nextjs/src/hooks/useTaco.ts @@ -1,4 +1,5 @@ import { + conditions, decrypt, Domain, encrypt, @@ -6,7 +7,6 @@ import { initialize, ThresholdMessageKit, } from '@nucypher/taco'; -import { Condition } from '@nucypher/taco/src/conditions'; import { ethers } from 'ethers'; import { useCallback, useEffect, useState } from 'react'; @@ -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], ); @@ -37,7 +43,7 @@ export default function useTaco({ const encryptDataToBytes = useCallback( async ( message: string, - condition: Condition, + condition: conditions.Condition, encryptorSigner: ethers.Signer, ) => { if (!isInit || !provider) return; diff --git a/examples/taco/react/src/hooks/useTaco.ts b/examples/taco/react/src/hooks/useTaco.ts index 082ff1b23..ed7732eb6 100644 --- a/examples/taco/react/src/hooks/useTaco.ts +++ b/examples/taco/react/src/hooks/useTaco.ts @@ -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], );