mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-14 15:41:04 +00:00
7aa27516e4
Signed-off-by: xermicus <cyrill@parity.io>
33 lines
658 B
Rust
33 lines
658 B
Rust
//!
|
|
//! Translates the external code operations.
|
|
//!
|
|
|
|
use crate::eravm::context::Context;
|
|
use crate::eravm::Dependency;
|
|
|
|
///
|
|
/// Translates the `extcodesize` instruction.
|
|
///
|
|
pub fn size<'ctx, D>(
|
|
_context: &mut Context<'ctx, D>,
|
|
_address: inkwell::values::IntValue<'ctx>,
|
|
) -> anyhow::Result<inkwell::values::BasicValueEnum<'ctx>>
|
|
where
|
|
D: Dependency + Clone,
|
|
{
|
|
todo!()
|
|
}
|
|
|
|
///
|
|
/// Translates the `extcodehash` instruction.
|
|
///
|
|
pub fn hash<'ctx, D>(
|
|
_context: &mut Context<'ctx, D>,
|
|
_address: inkwell::values::IntValue<'ctx>,
|
|
) -> anyhow::Result<inkwell::values::BasicValueEnum<'ctx>>
|
|
where
|
|
D: Dependency + Clone,
|
|
{
|
|
todo!()
|
|
}
|