mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 20:48:01 +00:00
Implement the gasprice opcode (#127)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user