Implement the gasprice opcode (#127)

This commit is contained in:
Cyrill Leutwiler
2024-11-29 17:14:27 +01:00
committed by GitHub
parent 3f6cd115ee
commit f0d9d44dce
6 changed files with 49 additions and 12 deletions
@@ -17,12 +17,12 @@ where
/// Translates the `gas_price` instruction.
pub fn gas_price<'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(1).as_basic_value_enum())
}
/// Translates the `tx.origin` instruction.