Skip to content

Commit

Permalink
Fixes #177 (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Sep 14, 2023
1 parent e9e7257 commit 2368dcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/nostr/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export enum EventKind {

export const npubLength = 64

export const enutsPubkey = 'npub1dx5q2el8nd4eh3eg9t2e25fd7zuqg7zxz6ldkc3uzgh66ss2yc6st288sj'

/**
* Regex to match a mnemonic seed
*/
Expand Down
4 changes: 2 additions & 2 deletions src/screens/Payment/Processing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { IMintUrl } from '@model'
import type { TBeforeRemoveEvent, TProcessingPageProps } from '@model/nav'
import { preventBack } from '@nav/utils'
import { relay } from '@nostr/class/Relay'
import { EventKind } from '@nostr/consts'
import { enutsPubkey, EventKind } from '@nostr/consts'
import { encrypt } from '@nostr/crypto'
import { useThemeContext } from '@src/context/Theme'
import { NS } from '@src/i18n'
Expand Down Expand Up @@ -202,7 +202,7 @@ export default function ProcessingScreen({ navigation, route }: TProcessingPageP
)
return
}
const msg = `${userNostrNpub || nostr.senderName} just sent you ${amount} Sat in Ecash using the eNuts wallet!\n\n ${token}`
const msg = `${userNostrNpub || nostr.senderName} (sender not verified) just sent you ${amount} Sat in Ecash using ${enutsPubkey}!\n\n ${token}`
const cipherTxt = await encrypt(sk, nostr.receiverNpub, msg)
const event = {
kind: EventKind.DirectMessage,
Expand Down

0 comments on commit 2368dcf

Please sign in to comment.