mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-04 22:33:06 +00:00
temp: temp changes
This commit is contained in:
parent
62668161b2
commit
27bb5bbb0f
@ -47,6 +47,8 @@ impl WalletSubcommand for AuthTransferSubcommand {
|
||||
|
||||
match addr_privacy {
|
||||
AddressPrivacyKind::Public => {
|
||||
let addr = addr.parse()?;
|
||||
|
||||
let res = wallet_core
|
||||
.register_account_under_authenticated_transfers_programs(addr)
|
||||
.await?;
|
||||
|
||||
@ -6,7 +6,7 @@ use tokio::io::AsyncReadExt;
|
||||
|
||||
use anyhow::Result;
|
||||
use key_protocol::key_protocol_core::NSSAUserData;
|
||||
use nssa::{Account, Address};
|
||||
use nssa::Account;
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::{
|
||||
@ -94,15 +94,15 @@ pub enum AddressPrivacyKind {
|
||||
|
||||
pub(crate) fn parse_addr_with_privacy_prefix(
|
||||
addr_base58: &str,
|
||||
) -> Result<(Address, AddressPrivacyKind)> {
|
||||
) -> Result<(String, AddressPrivacyKind)> {
|
||||
if addr_base58.starts_with("Public/") {
|
||||
Ok((
|
||||
addr_base58.strip_prefix("Public/").unwrap().parse()?,
|
||||
addr_base58.strip_prefix("Public/").unwrap().to_string(),
|
||||
AddressPrivacyKind::Public,
|
||||
))
|
||||
} else if addr_base58.starts_with("Private/") {
|
||||
Ok((
|
||||
addr_base58.strip_prefix("Private/").unwrap().parse()?,
|
||||
addr_base58.strip_prefix("Private/").unwrap().to_string(),
|
||||
AddressPrivacyKind::Private,
|
||||
))
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user