We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 896e01e commit b3ccd4cCopy full SHA for b3ccd4c
src/app/api/mint/route.ts
@@ -1,6 +1,7 @@
1
import { rgbSignaturesAbi } from '@/generated'
2
import { shortenAddress } from '@/lib/address'
3
import { idToColor } from '@/lib/color'
4
+import { getUrl } from '@/lib/next'
5
import { neynarClient } from '@/lib/neynar'
6
import type { NextRequest } from 'next/server'
7
import { type Address, parseEventLogs } from 'viem'
@@ -51,6 +52,7 @@ export async function POST(request: NextRequest) {
51
52
// biome-ignore lint/style/noNonNullAssertion: it's in the env
53
signerUuid: process.env.NEYNAR_SIGNER_UUID!,
54
text: `${username} minted rgb(${color.r},${color.g},${color.b})`,
55
+ embeds: [{ url: `${getUrl()}/signatures/${log.args.id}` }],
56
})
57
}
58
0 commit comments