0x0x230x

Untitled

Feb 18th, 2025
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. const keyData = await optimismClient.readContract({
  2. address: KEY_REGISTRY_ADDRESS,
  3. abi: keyRegistryABI,
  4. functionName: 'keyDataOf',
  5. args: [BigInt(fid), header.data.key as Hex],
  6. });
  7.  
  8. if (!keyData || keyData.keyType !== 1 || keyData.state !== 1) {
  9. return NextResponse.json(
  10. { success: false, errors: ['Invalid signer key'] },
  11. { status: 400 },
  12. );
  13. }
Advertisement
Add Comment
Please, Sign In to add comment