v0.2.5-pre.003-fix.001

This commit is contained in:
2026-08-19 11:24:32 +02:00
parent c6794af05b
commit d5536b0778
3 changed files with 149 additions and 5 deletions

View File

@@ -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() {