v0.2.6-pre.016
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-wallet-lib/src/metadata.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
/// Protected metadata requested when creating a new native Wallet.
|
||||
///
|
||||
@@ -78,12 +78,13 @@ pub struct WalletInfo {
|
||||
impl WalletInfo {
|
||||
/// Creates a new `WalletInfo` value.
|
||||
pub(crate) fn new(
|
||||
format_version: u32,
|
||||
capability: crate::WalletCapability,
|
||||
pubkey: ksp_core_lib::Pubkey,
|
||||
alias: std::option::Option<std::string::String>,
|
||||
notes: std::vec::Vec<crate::WalletNote>,
|
||||
) -> Self {
|
||||
return Self { format_version: crate::KSPWALLET_FORMAT_VERSION_V1, capability, pubkey, alias, notes };
|
||||
return Self { format_version, capability, pubkey, alias, notes };
|
||||
}
|
||||
|
||||
/// Returns the native Wallet format version parsed for this projection.
|
||||
@@ -139,8 +140,8 @@ pub struct LockedWalletInfo {
|
||||
|
||||
impl LockedWalletInfo {
|
||||
/// Creates a new `LockedWalletInfo` value.
|
||||
pub(crate) const fn new(view_enabled: bool) -> Self {
|
||||
return Self { format_version: crate::KSPWALLET_FORMAT_VERSION_V1, view_enabled };
|
||||
pub(crate) const fn new(format_version: u32, view_enabled: bool) -> Self {
|
||||
return Self { format_version, view_enabled };
|
||||
}
|
||||
|
||||
/// Returns the native Wallet format version.
|
||||
|
||||
Reference in New Issue
Block a user