diff --git a/actors/evm/src/interpreter/precompiles/fvm.rs b/actors/evm/src/interpreter/precompiles/fvm.rs index d546afbbb..f44759262 100644 --- a/actors/evm/src/interpreter/precompiles/fvm.rs +++ b/actors/evm/src/interpreter/precompiles/fvm.rs @@ -225,7 +225,7 @@ pub(super) fn call_actor_shared( /// /// | Param | Value | /// |------------------|---------------------------| -/// | randomness_epoch | U256 - low i64 | +/// | epoch | U256 - low i64 | /// /// Errors if unable to fetch randomness pub(super) fn get_randomness( @@ -234,9 +234,7 @@ pub(super) fn get_randomness( _: PrecompileContext, ) -> PrecompileResult { let mut input_params = ValueReader::new(input); - let randomness_epoch = input_params.read_value()?; - let randomness = system.rt.get_beacon_randomness(randomness_epoch); randomness.map(|r| r.to_vec()).map_err(|_| PrecompileError::InvalidInput) } diff --git a/actors/evm/src/interpreter/precompiles/mod.rs b/actors/evm/src/interpreter/precompiles/mod.rs index b66f719d3..fc939a919 100644 --- a/actors/evm/src/interpreter/precompiles/mod.rs +++ b/actors/evm/src/interpreter/precompiles/mod.rs @@ -41,12 +41,14 @@ pub struct Precompiles(PhantomData); impl Precompiles { /// FEVM specific precompiles (0xfe prefix) - const NATIVE_PRECOMPILES: PrecompileTable = PrecompileTable([ + const NATIVE_PRECOMPILES: PrecompileTable = PrecompileTable([ Some(resolve_address::), // 0xfe00..01 Some(lookup_delegated_address::), // 0xfe00..02 Some(call_actor::), // 0xfe00..03 - Some(get_randomness::), // 0xfe00..04 + None, // 0xfe00..04 get_actor_type DISABLED Some(call_actor_id::), // 0xfe00..05 + Some(get_randomness::), // 0xfe00..06 + ]); /// EVM specific precompiles