v0.2.5-pre.003-fix.001
This commit is contained in:
@@ -770,10 +770,10 @@ fn parse_raw_envelope(raw: RawEnvelopeV1) -> ksp_core_lib::Result<KspWalletEnvel
|
||||
std::option::Option::Some(slot) => slot,
|
||||
std::option::Option::None => return std::result::Result::Err(format_error("Wallet OWNER key slot is missing", "key_slots")),
|
||||
};
|
||||
if let std::option::Option::Some(view_slot_ref) = view_slot.as_ref() {
|
||||
if owner_slot.slot_id() == view_slot_ref.slot_id() {
|
||||
return std::result::Result::Err(format_error("Wallet key slot identifiers must be unique", "key_slots"));
|
||||
}
|
||||
if let std::option::Option::Some(view_slot_ref) = view_slot.as_ref()
|
||||
&& owner_slot.slot_id() == view_slot_ref.slot_id()
|
||||
{
|
||||
return std::result::Result::Err(format_error("Wallet key slot identifiers must be unique", "key_slots"));
|
||||
}
|
||||
if view_descriptor.enabled() {
|
||||
let descriptor_slot_id = match view_descriptor.slot_id() {
|
||||
|
||||
Reference in New Issue
Block a user