Implement the gasprice opcode (#127)

This commit is contained in:
Cyrill Leutwiler authored and GitHub committed 2024-11-29 17:14:27 +01:00
1 parent 3f6cd115ee
commit f0d9d44dce
6 files changed
+49 -12

No files matched your search

@@ -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.