refactor: simplify the print for sp1 platform a bit

This commit is contained in:
han0110
2026-02-16 13:45:33 +00:00
parent 67bad79dcf
commit da13743662

View File

@@ -22,8 +22,7 @@ impl Platform for SP1Platform {
}
fn print(message: &str) {
let bytes = message.as_bytes();
sp1_zkvm::syscalls::sys_write(1, bytes.as_ptr(), bytes.len());
sp1_zkvm::io::write(1, message.as_bytes());
}
fn cycle_scope_start(name: &str) {