account creation working
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
20
damus/Nostr/NostrMetadata.swift
Normal file
20
damus/Nostr/NostrMetadata.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// NostrMetadata.swift
|
||||
// damus
|
||||
//
|
||||
// Created by William Casarin on 2022-05-21.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
struct NostrMetadata: Codable {
|
||||
let display_name: String?
|
||||
let name: String?
|
||||
let about: String?
|
||||
let website: String?
|
||||
}
|
||||
|
||||
func create_account_to_metadata(_ model: CreateAccountModel) -> NostrMetadata {
|
||||
return NostrMetadata(display_name: model.real_name, name: model.nick_name, about: model.about, website: nil)
|
||||
}
|
||||
Reference in New Issue
Block a user