Submit the kind 0 first

environments/review-kind0-firs-6pjguu/deployments/4814
Alex Gleason 2024-09-13 15:30:44 -05:00
rodzic 6f55681315
commit 0faf460565
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -48,7 +48,7 @@ const KeygenStep: React.FC<IKeygenStep> = ({ onClose }) => {
const pubkey = await signer.getPublicKey();
const now = Math.floor(Date.now() / 1000);
const events = await Promise.all([
const [kind0, ...events] = await Promise.all([
signer.signEvent({ kind: 0, content: JSON.stringify({}), tags: [], created_at: now }),
signer.signEvent({ kind: 3, content: '', tags: [], created_at: now }),
signer.signEvent({ kind: 10000, content: '', tags: [], created_at: now }),
@ -58,6 +58,7 @@ const KeygenStep: React.FC<IKeygenStep> = ({ onClose }) => {
signer.signEvent({ kind: 30078, content: '', tags: [['d', 'pub.ditto.pleroma_settings_store']], created_at: now }),
]);
await relay?.event(kind0);
await Promise.all(events.map((event) => relay?.event(event)));
await dispatch(logInNostr(pubkey));