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 2e019bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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)
}
}
2 changes: 1 addition & 1 deletion crates/lang/src/env_access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ where
/// For more details visit: [`ink_env::code_hash`]
pub fn code_hash(self, account_id: &E::AccountId) -> Result<E::Hash> {
let mut output = <E as Environment>::Hash::clear();
ink_env::code_hash::<E>(account_id, &mut output).map(|_| output.into())
ink_env::code_hash::<E>(account_id, &mut output).map(|_| output)
}

/// Returns the code hash of the contract living at the given `account`.
Expand Down

0 comments on commit 2e019bf

Please sign in to comment.