mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-27 04:11:08 +00:00
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.
21 lines
374 B
Rust
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)
|
|
}
|