rename get_users_zap_endpoint -> get_users_zap_address
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -126,7 +126,7 @@ fn send_note_zap(
|
|||||||
nsec: &[u8; 32],
|
nsec: &[u8; 32],
|
||||||
relays: Vec<String>,
|
relays: Vec<String>,
|
||||||
) -> Option<FetchingInvoice> {
|
) -> Option<FetchingInvoice> {
|
||||||
let address = get_users_zap_endpoint(txn, ndb, ¬e_target.zap_recipient)?;
|
let address = get_users_zap_address(txn, ndb, ¬e_target.zap_recipient)?;
|
||||||
|
|
||||||
let promise = match address {
|
let promise = match address {
|
||||||
ZapAddress::Lud16(s) => {
|
ZapAddress::Lud16(s) => {
|
||||||
@@ -144,7 +144,7 @@ enum ZapAddress {
|
|||||||
Lud06(String),
|
Lud06(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_users_zap_endpoint(txn: &Transaction, ndb: &Ndb, receiver: &Pubkey) -> Option<ZapAddress> {
|
fn get_users_zap_address(txn: &Transaction, ndb: &Ndb, receiver: &Pubkey) -> Option<ZapAddress> {
|
||||||
let profile = ndb
|
let profile = ndb
|
||||||
.get_profile_by_pubkey(txn, receiver.bytes())
|
.get_profile_by_pubkey(txn, receiver.bytes())
|
||||||
.ok()?
|
.ok()?
|
||||||
|
|||||||
Reference in New Issue
Block a user