refactor(lee_core): commit program output as a borsh frame

This commit is contained in:
Artem Gureev
2026-08-23 09:13:07 +00:00
parent 52ebea0d2a
commit c86b903737
+2 -1
View File
@@ -524,7 +524,8 @@ impl ProgramOutput {
}
pub fn write(self) {
env::commit(&self);
let payload = borsh::to_vec(&self).expect("borsh serialization is infallible");
env::commit_slice(&crate::to_frame(&payload));
}
pub fn with_chained_calls(mut self, chained_calls: Vec<ChainedCall>) -> Self {