Description
InvoiceExt3 in contracts/split/src/types.rs is stored separately from InvoiceCore/InvoiceExt/InvoiceExt2 to avoid disturbing existing XDR layouts (as noted in the existing comment). The doc comment does not explain which storage key is used or how to find the key in storage_keys.rs. Adding a # Storage layout section would help developers navigating the codebase.
Acceptance Criteria
Context
- Target file:
contracts/split/src/types.rs
- Reference
contracts/split/src/storage_keys.rs for the key variant name
Description
InvoiceExt3incontracts/split/src/types.rsis stored separately fromInvoiceCore/InvoiceExt/InvoiceExt2to avoid disturbing existing XDR layouts (as noted in the existing comment). The doc comment does not explain which storage key is used or how to find the key instorage_keys.rs. Adding a# Storage layoutsection would help developers navigating the codebase.Acceptance Criteria
/// # Storage layoutsection toInvoiceExt3incontracts/split/src/types.rsInvoiceKey::Ext3(invoice_id)) and explains why it is stored separatelycargo docbuilds without warningscargo testpassesContext
contracts/split/src/types.rscontracts/split/src/storage_keys.rsfor the key variant name