style: fix lint error

This commit is contained in:
Shusui MOYATANI
2024-01-04 22:31:42 +09:00
parent abe3f6bf65
commit 34f303588e
2 changed files with 0 additions and 12 deletions

View File

@@ -1,5 +1,3 @@
import { z } from 'zod';
import TagsBase, { TagsSchema } from '@/nostr/event/TagsBase';
export default class Tags extends TagsBase {

View File

@@ -72,16 +72,6 @@ export const buildTags = ({
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 pool = usePool();