difftreelog
misk: Fix typo.
in: master
1 file changed
pallets/unique/src/eth/mod.rsdiffbeforeafterboth69 .encode_utf16()69 .encode_utf16()70 .collect::<Vec<u16>>()70 .collect::<Vec<u16>>()71 .try_into()71 .try_into()72 .map_err(|_| error_feild_too_long(stringify!(name), CollectionName::bound()))?;72 .map_err(|_| error_field_too_long(stringify!(name), CollectionName::bound()))?;73 let description = description73 let description = description74 .encode_utf16()74 .encode_utf16()75 .collect::<Vec<u16>>()75 .collect::<Vec<u16>>()76 .try_into()76 .try_into()77 .map_err(|_| {77 .map_err(|_| {78 error_feild_too_long(stringify!(description), CollectionDescription::bound())78 error_field_too_long(stringify!(description), CollectionDescription::bound())79 })?;79 })?;80 let token_prefix = token_prefix.into_bytes().try_into().map_err(|_| {80 let token_prefix = token_prefix.into_bytes().try_into().map_err(|_| {81 error_feild_too_long(stringify!(token_prefix), CollectionTokenPrefix::bound())81 error_field_too_long(stringify!(token_prefix), CollectionTokenPrefix::bound())82 })?;82 })?;83 let base_uri_value = base_uri83 let base_uri_value = base_uri84 .into_bytes()84 .into_bytes()85 .try_into()85 .try_into()86 .map_err(|_| error_feild_too_long(stringify!(token_prefix), PropertyValue::bound()))?;86 .map_err(|_| error_field_too_long(stringify!(token_prefix), PropertyValue::bound()))?;87 Ok((caller, name, description, token_prefix, base_uri_value))87 Ok((caller, name, description, token_prefix, base_uri_value))88}88}8989311generate_stubgen!(collection_helper_impl, CollectionHelpersCall<()>, true);311generate_stubgen!(collection_helper_impl, CollectionHelpersCall<()>, true);312generate_stubgen!(collection_helper_iface, CollectionHelpersCall<()>, false);312generate_stubgen!(collection_helper_iface, CollectionHelpersCall<()>, false);313313314fn error_feild_too_long(feild: &str, bound: usize) -> Error {314fn error_field_too_long(feild: &str, bound: usize) -> Error {315 Error::Revert(format!("{} is too long. Max length is {}.", feild, bound))315 Error::Revert(format!("{} is too long. Max length is {}.", feild, bound))316}316}317317