Skip to content

Commit

Permalink
more ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
agryaznov committed Mar 31, 2022
1 parent f9769dc commit 891f434
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/env/src/engine/on_chain/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ pub fn caller_is_origin() -> bool {
ret_val.into_bool()
}

pub fn code_hash(account_id: &[u8], output: &mut [u8]) -> Result {
pub fn code_hash(account_id: &[u8], output: &mut &mut [u8]) -> Result {
let mut output_len = output.len() as u32;
let ret_val = unsafe {
sys::seal_code_hash(
Expand All @@ -700,7 +700,7 @@ pub fn code_hash(account_id: &[u8], output: &mut [u8]) -> Result {
ret_val.into()
}

pub fn own_code_hash(output: &mut [u8]) -> Result {
pub fn own_code_hash(output: &mut &mut [u8]) -> Result {
let mut output_len = output.len() as u32;
let ret_val = unsafe {
sys::seal_own_code_hash(
Expand Down
4 changes: 2 additions & 2 deletions crates/env/src/engine/on_chain/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,13 +523,13 @@ impl TypedEnvBackend for EnvInstance {
{
let mut scope = self.scoped_buffer();
let enc_account_id = scope.take_encoded(account_id);
ext::code_hash(enc_account_id, output).map_err(Into::into)
ext::code_hash(enc_account_id, output.as_mut()).map_err(Into::into)
}

fn own_code_hash<E>(&mut self, output: &mut E::Hash) -> Result<()>
where
E: Environment,
{
ext::own_code_hash(output).map_err(Into::into)
ext::own_code_hash(output.as_mut()).map_err(Into::into)
}
}

0 comments on commit 891f434

Please sign in to comment.