mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-22 11:46:22 +00:00
Implement the gasprice opcode (#127)
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user