Skip to main content

resolve_precompiled_runtime_from_input

Function resolve_precompiled_runtime_from_input 

Source
pub fn resolve_precompiled_runtime_from_input(input: &[u8]) -> Address
Expand description

Resolves and returns the account owner Address based on the provided input byte slice.

§Parameters

  • input: A byte slice (&[u8]) used to determine the runtime owner. The function inspects the beginning of the input slice to match specific magic byte sequences associated with predefined runtime owners.

§Notes

  • This function provides a mechanism to associate specific runtime types with accounts based on their initialization input data.