fix(lez): update programs for diff_data's move to Data

Rebasing onto marvin/incremental-updates-1's AccountDiff.diff_data:
Option<Data> change (was Option<Vec<u8>>) needed real fixes, not just a
mechanical rebase: every program's update_from_diff and every
diff_data-constructing call site was still written against the old
Vec<u8> shape. Several sites were doing a pointless Data -> Vec<u8> ->
Data round trip to satisfy the old field type; those now just pass the
Data value straight through. The host-side
execute_update_from_diff/prove_update_from_diff/write_update_from_diff_inputs
in lee/state_machine move to Data too, matching what now flows from
lee_core.
This commit is contained in:
Marvin Jones
2026-08-22 01:22:31 -04:00
parent cb41fa7918
commit 687cc211f9
13 changed files with 19 additions and 19 deletions
@@ -103,7 +103,7 @@ fn main() {
let updated_data: Data = updated_state
.to_bytes()
.try_into()
.expect("pinata state fits in account data");
.expect("pinata account data always fits under DATA_MAX_LENGTH");
let pinata_post = AccountDiffOutput::new_claimed_if_default(
AccountDiff {