Skip to content

Commit

Permalink
clients
Browse files Browse the repository at this point in the history
  • Loading branch information
jawndiego committed Jun 24, 2024
1 parent 5d32cf8 commit 98f7b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
2 changes: 1 addition & 1 deletion apps/site/app/api/registerFor/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function POST(req: NextRequest) {

const registerTx =
// biome-ignore lint:
await syndicateClientIdRegistry!.officialActions.transact.sendTransaction(
await syndicateClientIdRegistry!.transact.sendTransaction(
generateIdRegistryInput({ to, recovery, deadline, sig }),
)

Expand Down
30 changes: 2 additions & 28 deletions apps/site/config/syndicateClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,31 +69,5 @@ export const generateIdRegistryInput = (register: Register) => ({
},
})

const apiPostKey = process.env.SYNDICATE_POST_API_KEY
const apiIdKey = process.env.SYNDICATE_ID_API_KEY

// export const syndicateClientPost =
// projectIdPost !== 'Error' && apiPostKey
// ? {
// officialActions: new SyndicateClient({
// token: () => apiPostKey,
// }),
// projectId: projectIdPost,
// generatePostTxnInput,
// generatePostBatchTxnInput,

// }
// : null

export const syndicateClientPost = new SyndicateClient({ token: apiPostKey as string })

export const syndicateClientIdRegistry =
projectIdRegistry !== 'Error' && apiIdKey
? {
officialActions: new SyndicateClient({
token: () => apiIdKey,
}),
projectId: projectIdRegistry,
generateIdRegistryInput,
}
: null
export const syndicateClientPost = new SyndicateClient({ token: process.env.SYNDICATE_POST_API_KEY as string })
export const syndicateClientIdRegistry = new SyndicateClient({ token: process.env.SYNDICATE_ID_API_KEY as string })

0 comments on commit 98f7b59

Please sign in to comment.