the basefee opcode (#142)

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
Cyrill Leutwiler
2024-12-19 18:59:10 +01:00
committed by GitHub
parent 6ad846a285
commit d8752ec6b5
7 changed files with 410 additions and 373 deletions
@@ -137,7 +137,7 @@ pub fn basefee<'ctx, D>(
where
D: Dependency + Clone,
{
Ok(context.word_const(0).as_basic_value_enum())
context.build_runtime_call_to_getter(revive_runtime_api::polkavm_imports::BASE_FEE)
}
/// Translates the `address` instruction.