Skip to content

Commit b3ccd4c

Browse files
committed
Add URL to mint bot
1 parent 896e01e commit b3ccd4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/api/mint/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { rgbSignaturesAbi } from '@/generated'
22
import { shortenAddress } from '@/lib/address'
33
import { idToColor } from '@/lib/color'
4+
import { getUrl } from '@/lib/next'
45
import { neynarClient } from '@/lib/neynar'
56
import type { NextRequest } from 'next/server'
67
import { type Address, parseEventLogs } from 'viem'
@@ -51,6 +52,7 @@ export async function POST(request: NextRequest) {
5152
// biome-ignore lint/style/noNonNullAssertion: it's in the env
5253
signerUuid: process.env.NEYNAR_SIGNER_UUID!,
5354
text: `${username} minted rgb(${color.r},${color.g},${color.b})`,
55+
embeds: [{ url: `${getUrl()}/signatures/${log.args.id}` }],
5456
})
5557
}
5658

0 commit comments

Comments
 (0)