Skip to content

Commit

Permalink
fix: riscv: update runtime host reveal functions to return RevealError
Browse files Browse the repository at this point in the history
  • Loading branch information
Anastasia Courtney committed Nov 29, 2024
1 parent 4a237bb commit 5823941
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/jstz_core/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -86,7 +86,7 @@ mod erased_runtime {
&self,
hash: &[u8; 33],
destination: &mut [u8],
) -> Result<usize, HostError>;
) -> Result<usize, RevealError>;
fn erased_store_value_size(
&self,
path: erase::Path<'_>,
Expand Down Expand Up @@ -231,7 +231,7 @@ mod erased_runtime {
&self,
hash: &[u8; 33],
destination: &mut [u8],
) -> Result<usize, HostError> {
) -> Result<usize, RevealError> {
self.reveal_preimage(hash, destination)
}

Expand Down Expand Up @@ -373,7 +373,7 @@ mod erased_runtime {
&self,
hash: &[u8; 33],
destination: &mut [u8],
) -> Result<usize, HostError> {
) -> Result<usize, RevealError> {
self.erased_reveal_preimage(hash, destination)
}

Expand Down Expand Up @@ -538,7 +538,7 @@ impl<'a: 'static> HostRuntime for JsHostRuntime<'a> {
&self,
hash: &[u8; 33],
destination: &mut [u8],
) -> Result<usize, HostError> {
) -> Result<usize, RevealError> {
self.inner.reveal_preimage(hash, destination)
}

Expand Down

0 comments on commit 5823941

Please sign in to comment.