Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed May 17, 2024
1 parent 806790b commit d4d5d8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/libs/lit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ const provider = new ethers.providers.JsonRpcProvider(
175177,
);

const definition = getTypeDefinitions();

const config = {
litNetwork: process.env.LIT_NETWORK,
domain: process.env.DOMAIN,
Expand Down Expand Up @@ -615,6 +613,8 @@ export const getPKPSession = async (session, index) => {
};

export const getRolesFromSession = (session) => {
const definition = getTypeDefinitions();

const authorizedModels = new Set(
session.cacao.p.resources.map((r) => r.replace("ceramic://*?model=", "")),
);
Expand Down

0 comments on commit d4d5d8f

Please sign in to comment.