mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 06:48:03 +00:00
constant values for basefee and difficulty
Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user