Skip to content

Commit

Permalink
more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
agryaznov committed May 11, 2022
1 parent 52977b2 commit ce22fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/env/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,12 @@ pub fn set_code_hash(code_hash: &[u8; 32]) -> Result<()> {
<EnvInstance as OnInstance>::on_instance(|instance| instance.set_code_hash(code_hash))
}

/// Returns the default Substrate's `AccountId` [u8;32] from the ECDSA compressed public key.
/// Returns the default Substrate's `AccountId` (`\[u8;32\]`) from the ECDSA compressed public key.
/// It hashes the compressed public key with the `blake2b_256` algorithm like in substrate.
///
/// # Note
///
/// This function implies a standart `AccountId` type which is [u8;32].
/// This function implies a standart `AccountId` type which is `\[u8;32\]`.
pub fn ecdsa_to_default_account_id(pubkey: &[u8; 33]) -> AccountId {
<EnvInstance as OnInstance>::on_instance(|instance| {
instance.ecdsa_to_default_account_id(pubkey)
Expand Down

0 comments on commit ce22fb0

Please sign in to comment.