Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add todo comment to remind of disabling balances serialization #3579

Merged
merged 3 commits into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rs/ledger_suite/icrc1/ledger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ pub type Tokens = ic_icrc1_tokens_u256::U256;
/// * 0 - the whole ledger state is stored on the heap.
/// * 1 - the allowances are stored in stable structures.
/// * 2 - the balances are stored in stable structures.
// TODO: When moving to version 3 consider adding `#[serde(default, skip_serializing)]`
// to `balances` and `approvals` fields of the `Ledger` struct.
// Since `balances` don't use a default, this can only be done with an incompatible change.
#[cfg(not(feature = "next-ledger-version"))]
pub const LEDGER_VERSION: u64 = 2;

Expand Down
Loading