From 58239411826a855354160721e9520f2348d3cc23 Mon Sep 17 00:00:00 2001 From: Anastasia Courtney Date: Fri, 29 Nov 2024 14:42:57 +0000 Subject: [PATCH] fix: riscv: update runtime host reveal functions to return RevealError --- crates/jstz_core/src/host.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/jstz_core/src/host.rs b/crates/jstz_core/src/host.rs index 0ddaf7c40..5e349df9b 100644 --- a/crates/jstz_core/src/host.rs +++ b/crates/jstz_core/src/host.rs @@ -8,7 +8,7 @@ use tezos_smart_rollup_host::{ }; pub use tezos_smart_rollup_host::runtime::{ - Runtime as HostRuntime, RuntimeError as HostError, + Runtime as HostRuntime, RuntimeError as HostError, RevealError, }; mod erased_runtime { @@ -86,7 +86,7 @@ mod erased_runtime { &self, hash: &[u8; 33], destination: &mut [u8], - ) -> Result; + ) -> Result; fn erased_store_value_size( &self, path: erase::Path<'_>, @@ -231,7 +231,7 @@ mod erased_runtime { &self, hash: &[u8; 33], destination: &mut [u8], - ) -> Result { + ) -> Result { self.reveal_preimage(hash, destination) } @@ -373,7 +373,7 @@ mod erased_runtime { &self, hash: &[u8; 33], destination: &mut [u8], - ) -> Result { + ) -> Result { self.erased_reveal_preimage(hash, destination) } @@ -538,7 +538,7 @@ impl<'a: 'static> HostRuntime for JsHostRuntime<'a> { &self, hash: &[u8; 33], destination: &mut [u8], - ) -> Result { + ) -> Result { self.inner.reveal_preimage(hash, destination) }