difftreelog
path: Add check for address length.
in: master
1 file changed
pallets/common/src/eth.rsdiffbeforeafterboth59 uint256::from_big_endian(slice)59 uint256::from_big_endian(slice)60}60}6162/// Converts Substrate address to CrossAccountId63pub fn convert_substrate_address_to_cross_account_id<T: Config>(64 address: uint256,65) -> T::CrossAccountId66where67 T::AccountId: From<[u8; 32]>,68{69 let mut address_arr: [u8; 32] = Default::default();70 address.to_big_endian(&mut address_arr);71 let account_id = T::AccountId::from(address_arr);72 T::CrossAccountId::from_sub(account_id)73}7461