refactor: rename officialDittoAccountPubkey to dittoPubkey & officialDittoAccountMsg to dittoMsg

This commit is contained in:
P. Reis 2024-07-23 20:25:02 -03:00
parent a0c952b9b9
commit 7cdfb67b99

View file

@ -16,16 +16,16 @@ const instanceV1Controller: AppController = async (c) => {
let zap_split: DittoZapSplits | undefined = await getZapSplits(store, Conf.pubkey); let zap_split: DittoZapSplits | undefined = await getZapSplits(store, Conf.pubkey);
if (!zap_split) { if (!zap_split) {
const officialDittoAccountPubkey = '781a1527055f74c1f70230f10384609b34548f8ab6a0a6caa74025827f9fdae5'; const dittoPubkey = '781a1527055f74c1f70230f10384609b34548f8ab6a0a6caa74025827f9fdae5';
const officialDittoAccountMsg = 'Official Ditto Account'; const dittoMsg = 'Official Ditto Account';
await createAdminEvent({ await createAdminEvent({
kind: 30078, kind: 30078,
tags: [ tags: [
['d', 'pub.ditto.zapSplits'], ['d', 'pub.ditto.zapSplits'],
['p', officialDittoAccountPubkey, '5', officialDittoAccountMsg], ['p', dittoPubkey, '5', dittoMsg],
], ],
}, c); }, c);
zap_split = { [officialDittoAccountPubkey]: ['5', officialDittoAccountMsg] }; zap_split = { [dittoPubkey]: ['5', dittoMsg] };
} }
/** Protocol to use for WebSocket URLs, depending on the protocol of the `LOCAL_DOMAIN`. */ /** Protocol to use for WebSocket URLs, depending on the protocol of the `LOCAL_DOMAIN`. */