Skip to content

Commit

Permalink
improve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Wollac committed Aug 7, 2024
1 parent 261178f commit 47b4829
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion steel/src/beacon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ pub mod provider {
let parent_beacon_header = client
.get_beacon_header(BlockId::Root(parent_beacon_block_root))
.await
.with_context(|| format!("failed to get header {}", parent_beacon_block_root))?;
.with_context(|| {
format!("failed to get block header {}", parent_beacon_block_root)
})?;
let beacon_header = get_child_beacon_header(&client, parent_beacon_header)
.await
.with_context(|| {
Expand Down Expand Up @@ -149,6 +151,9 @@ pub struct EvmBeaconInput<H> {
}

impl<H: EvmBlockHeader> EvmBeaconInput<H> {
/// Converts the input into a [EvmEnv] for execution.
///
/// [EvmEnv]: crate::EvmEnv
pub fn into_env(self) -> GuestEvmEnv<H> {
let mut env = self.input.into_env();

Expand Down

0 comments on commit 47b4829

Please sign in to comment.