Function pallet_axelar_router::decode_var_source
source · pub fn decode_var_source<const EXPECTED_SOURCE_ADDRESS_SIZE: usize>(
source_address: &[u8]
) -> Option<[u8; EXPECTED_SOURCE_ADDRESS_SIZE]>
Expand description
Decodes the source address which can be:
- a 20 bytes array
- an hexadecimal character secuence (40 characters)
- an hexadecimal character secuence (40 characters) with 0x prefix