Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Jul 15, 2024
1 parent 452665e commit 78ee7e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trade.renegade.fi/app/api/get-logs/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { chain } from "@/lib/viem"
import { NextRequest } from "next/server"
import { createPublicClient, http, parseAbiItem } from "viem"

export const runtime = "edge"

// Necessary because public RPC does not support getting logs
const viemClient = createPublicClient({
chain,
Expand All @@ -22,7 +24,7 @@ export async function GET(req: NextRequest) {
"event WalletUpdated(uint256 indexed wallet_blinder_share)"
),
args: {
wallet_blinder_share: BigInt(blinderShare?.toString() || "0"),
wallet_blinder_share: blinderShare,
},
fromBlock: BigInt(process.env.FROM_BLOCK || 0),
})
Expand Down

0 comments on commit 78ee7e9

Please sign in to comment.