mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-13 18:51:05 +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.
|
/// Translates the `difficulty` instruction.
|
||||||
pub fn difficulty<'ctx, D>(
|
pub fn difficulty<'ctx, D>(
|
||||||
_context: &mut Context<'ctx, D>,
|
context: &mut Context<'ctx, D>,
|
||||||
) -> anyhow::Result<inkwell::values::BasicValueEnum<'ctx>>
|
) -> anyhow::Result<inkwell::values::BasicValueEnum<'ctx>>
|
||||||
where
|
where
|
||||||
D: Dependency + Clone,
|
D: Dependency + Clone,
|
||||||
{
|
{
|
||||||
todo!()
|
Ok(context.word_const(2500000000000000).as_basic_value_enum())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Translates the `coinbase` instruction.
|
/// Translates the `coinbase` instruction.
|
||||||
@@ -129,12 +129,12 @@ where
|
|||||||
|
|
||||||
/// Translates the `basefee` instruction.
|
/// Translates the `basefee` instruction.
|
||||||
pub fn basefee<'ctx, D>(
|
pub fn basefee<'ctx, D>(
|
||||||
_context: &mut Context<'ctx, D>,
|
context: &mut Context<'ctx, D>,
|
||||||
) -> anyhow::Result<inkwell::values::BasicValueEnum<'ctx>>
|
) -> anyhow::Result<inkwell::values::BasicValueEnum<'ctx>>
|
||||||
where
|
where
|
||||||
D: Dependency + Clone,
|
D: Dependency + Clone,
|
||||||
{
|
{
|
||||||
todo!()
|
Ok(context.word_const(0).as_basic_value_enum())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Translates the `msize` instruction.
|
/// Translates the `msize` instruction.
|
||||||
|
|||||||
Reference in New Issue
Block a user