Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
agryaznov committed May 11, 2022
1 parent 5ee5f36 commit 52977b2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions crates/env/src/engine/on_chain/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,14 +559,4 @@ impl TypedEnvBackend for EnvInstance {
let hash = scale::Decode::decode(&mut &output[..])?;
Ok(hash)
}

fn ecdsa_to_default_account_id<E, H>(&mut self, pubkey: &[u8; 33]) -> E::AccountId
where
H: CryptoHash,
E: Environment,
{
let mut output = <hash::Blake2x256 as hash::HashOutput>::Type::default();
<H as CryptoHash>::hash(pubkey[..], &mut output);
output.into()
}
}

0 comments on commit 52977b2

Please sign in to comment.