docs(lee): trim deploy_pda_seed doc comment, fix misattached module doc

deploy_pda_seed's first paragraph just restated its parameter names;
kept only the domain-separation rationale. chained_call_forwarder.rs's
doc comment was floating over an unrelated type alias instead of being
a module-level //! doc.
This commit is contained in:
Marvin Jones
2026-08-22 17:39:23 -04:00
parent 96f2bc1be0
commit 03411f8cae
2 changed files with 7 additions and 9 deletions
-3
View File
@@ -43,9 +43,6 @@ impl From<&ProgramData> for Data {
/// Derives the PDA seed for a deployed program's `ProgramData` account.
///
/// Combines the program's content-derived identity (`image_id`), its position in a (currently
/// always single-segment) split (`segment_number`), and who may redeploy it (`update_auth`).
///
/// Domain-separated from other PDA-seed derivations in the codebase so that a `deploy_pda_seed`
/// output can never collide with a seed meant for a different purpose, even if the input triple
/// happened to coincide.
@@ -1,13 +1,14 @@
//! Forwards a single chained call to `target_program_id` with `instruction_data`, passing
//! through whatever `pre_states` this program itself was invoked with unchanged.
//!
//! Exists purely as test infrastructure: lets a test exercise "program X invokes program Y via
//! a chained call" for an arbitrary Y and instruction, without needing a purpose-built guest for
//! every target program under test.
use lee_core::program::{
AccountPostState, ChainedCall, ProgramId, ProgramInput, ProgramOutput, read_lee_inputs,
};
/// Forwards a single chained call to `target_program_id` with `instruction_data`, passing
/// through whatever `pre_states` this program itself was invoked with unchanged.
///
/// Exists purely as test infrastructure: lets a test exercise "program X invokes program Y via
/// a chained call" for an arbitrary Y and instruction, without needing a purpose-built guest for
/// every target program under test.
type Instruction = (ProgramId, Vec<u32>);
fn main() {