Skip to content

Commit

Permalink
nit: little refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dalechyn committed Sep 25, 2024
1 parent 74d7213 commit d873a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/relay/src/handlers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FastifyError, FastifyReply, FastifyRequest } from "fastify";
import type { Hex } from "viem";
import { AUTH_KEY, URL_BASE } from "./env";
import { generateSiweNonce as generateNonce } from "viem/siwe";
import { generateSiweNonce } from "viem/siwe";

export type CreateChannelRequest = {
siweUri: string;
Expand Down Expand Up @@ -56,7 +56,7 @@ export async function createChannel(request: FastifyRequest<{ Body: CreateChanne
const channel = await request.channels.open();
if (channel.isOk()) {
const channelToken = channel.value;
const nonce = request.body.nonce ?? generateNonce();
const nonce = request.body.nonce ?? generateSiweNonce();
const url = constructUrl(channelToken);

const update = await request.channels.update(channelToken, {
Expand Down

0 comments on commit d873a7b

Please sign in to comment.