mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-27 04:11:08 +00:00
refactor(lee_core): commit program output as a borsh frame
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user