Files
logos-execution-zone/lez/programs/token/src/lib.rs
T
Marvin Jones cb41fa7918 docs(lez): drop repeated update_from_diff passthrough comment
The same "diff_data is already the fully-computed encoding, so this is
a passthrough" explanation was copy-pasted across 13 update_from_diff
implementations. The general contract is already documented once,
centrally, on ProgramCall::UpdateFromDiff in lee_core; each per-program
repeat added nothing beyond what the unused _pre_state parameter and a
one-line body already convey.
2026-08-22 01:18:26 -04:00

21 lines
374 B
Rust

//! The Token Program implementation.
use std::convert::Infallible;
use lee_core::account::{Account, Data};
pub use token_core as core;
pub mod burn;
pub mod initialize;
pub mod mint;
pub mod new_definition;
pub mod print_nft;
pub mod transfer;
mod tests;
pub fn update_from_diff(_pre_state: Account, diff_data: Data) -> Result<Data, Infallible> {
Ok(diff_data)
}