constant values for basefee and difficulty

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-05-13 18:47:36 +02:00
parent 02055c73bb
commit 2194aeebd0
@@ -109,12 +109,12 @@ where
/// Translates the `difficulty` instruction.
pub fn difficulty<'ctx, D>(
_context: &mut Context<'ctx, D>,
context: &mut Context<'ctx, D>,
) -> anyhow::Result<inkwell::values::BasicValueEnum<'ctx>>
where
D: Dependency + Clone,
{
todo!()
Ok(context.word_const(2500000000000000).as_basic_value_enum())
}
/// Translates the `coinbase` instruction.
@@ -129,12 +129,12 @@ where
/// Translates the `basefee` instruction.
pub fn basefee<'ctx, D>(
_context: &mut Context<'ctx, D>,
context: &mut Context<'ctx, D>,
) -> anyhow::Result<inkwell::values::BasicValueEnum<'ctx>>
where
D: Dependency + Clone,
{
todo!()
Ok(context.word_const(0).as_basic_value_enum())
}
/// Translates the `msize` instruction.