Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Oct 16, 2024
1 parent ad69543 commit a7b172f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions substrate/frame/revive/uapi/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ pub trait HostFn: private::Sealed {
///
/// - `addr`: The address of the contract.
/// - `output`: A reference to the output data buffer to write the code hash.
///
/// # Note
///
/// If `addr` is not a contract but account exists then hash of empty data
/// `0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470` is written,
/// otherwise `zero`.
fn code_hash(addr: &[u8; 20], output: &mut [u8; 32]);

/// Checks whether there is a value stored under the given key.
Expand Down

0 comments on commit a7b172f

Please sign in to comment.