mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 22:44:26 +01:00
style: fix lint error
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import { z } from 'zod';
|
|
||||||
|
|
||||||
import TagsBase, { TagsSchema } from '@/nostr/event/TagsBase';
|
import TagsBase, { TagsSchema } from '@/nostr/event/TagsBase';
|
||||||
|
|
||||||
export default class Tags extends TagsBase {
|
export default class Tags extends TagsBase {
|
||||||
|
|||||||
@@ -72,16 +72,6 @@ export const buildTags = ({
|
|||||||
return [...eTags, ...pTags, ...otherTags];
|
return [...eTags, ...pTags, ...otherTags];
|
||||||
};
|
};
|
||||||
|
|
||||||
const signEvent = (event: UnsignedEvent): Promise<NostrEvent> => {
|
|
||||||
const preSignedEvent: UnsignedEvent & { id?: string } = { ...event };
|
|
||||||
preSignedEvent.id = getEventHash(preSignedEvent);
|
|
||||||
|
|
||||||
if (window.nostr == null) {
|
|
||||||
throw new Error('NIP-07 implementation not found');
|
|
||||||
}
|
|
||||||
return window.nostr.signEvent(preSignedEvent);
|
|
||||||
};
|
|
||||||
|
|
||||||
const useCommands = () => {
|
const useCommands = () => {
|
||||||
const pool = usePool();
|
const pool = usePool();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user