diff --git a/pallets/living-assets-ownership/src/tests.rs b/pallets/living-assets-ownership/src/tests.rs index c9fa5412..168d907a 100644 --- a/pallets/living-assets-ownership/src/tests.rs +++ b/pallets/living-assets-ownership/src/tests.rs @@ -14,7 +14,7 @@ type AccountId = ::AccountId; const ALICE: AccountId = 0x1234; #[test] -fn owner_of_unexistent_collection_is_none() { +fn owner_of_nonexistent_collection_is_none() { new_test_ext().execute_with(|| { assert_eq!(LivingAssetsModule::owner_of_collection(0), None); assert_eq!(LivingAssetsModule::owner_of_collection(1), None); @@ -62,7 +62,7 @@ fn living_assets_ownership_trait_create_new_collection() { } #[test] -fn living_assets_ownership_trait_owner_of_unexistent_collection_is_none() { +fn living_assets_ownership_trait_owner_of_nonexistent_collection_is_none() { new_test_ext().execute_with(|| { assert_eq!( >::owner_of_collection(0), @@ -117,7 +117,7 @@ fn living_assets_ownership_trait_id_of_new_collection_should_be_consecutive() { } #[test] -fn erc721_owner_of_asset_of_unexistent_collection() { +fn erc721_owner_of_asset_of_nonexistent_collection() { new_test_ext().execute_with(|| { let result = ::owner_of(0, 2.into()); assert_err!(result, traits::Erc721Error::UnexistentCollection); diff --git a/precompile/erc721/src/lib.rs b/precompile/erc721/src/lib.rs index 9d9708ea..eee08a80 100644 --- a/precompile/erc721/src/lib.rs +++ b/precompile/erc721/src/lib.rs @@ -14,8 +14,8 @@ use sp_std::{fmt::Debug, marker::PhantomData}; #[precompile_utils_macro::generate_function_selector] #[derive(Debug, PartialEq)] pub enum Action { - /// Get tocken URI - TockenURI = "tokenURI(uint256)", + /// Get token URI + TokenURI = "tokenURI(uint256)", /// Owner of OwnerOf = "ownerOf(uint256)", } @@ -40,12 +40,12 @@ where let selector = handle.read_selector()?; handle.check_function_modifier(match selector { - Action::TockenURI => FunctionModifier::View, + Action::TokenURI => FunctionModifier::View, Action::OwnerOf => FunctionModifier::View, })?; match selector { - Action::TockenURI => Err(revert("not implemented")), + Action::TokenURI => Err(revert("not implemented")), Action::OwnerOf => { let mut input = handle.read_input()?; input.expect_arguments(1)?; diff --git a/precompile/erc721/src/tests.rs b/precompile/erc721/src/tests.rs index b9a7b1e2..3adf2abf 100644 --- a/precompile/erc721/src/tests.rs +++ b/precompile/erc721/src/tests.rs @@ -11,7 +11,7 @@ type AddressMapping = pallet_evm::IdentityAddressMapping; #[test] fn check_selectors() { assert_eq!(Action::OwnerOf as u32, 0x6352211E); - assert_eq!(Action::TockenURI as u32, 0xC87B56DD); + assert_eq!(Action::TokenURI as u32, 0xC87B56DD); } #[test] diff --git a/precompile/living-assets/src/tests.rs b/precompile/living-assets/src/tests.rs index 6d404a1d..e527409a 100644 --- a/precompile/living-assets/src/tests.rs +++ b/precompile/living-assets/src/tests.rs @@ -110,13 +110,13 @@ fn create_collection_assign_collection_to_caller() { } #[test] -fn call_unexistent_selector_should_fail() { +fn call_nonexistent_selector_should_fail() { impl_precompile_mock_simple!(Mock, Ok(0), Some(H160::from_low_u64_be(0x1234))); - let unexistent_selector = + let nonexistent_selector = hex::decode("fb24ae530000000000000000000000000000000000000000000000000000000000000000") .unwrap(); - let mut handle = create_mock_handle_from_input(unexistent_selector); + let mut handle = create_mock_handle_from_input(nonexistent_selector); let result = Mock::execute(&mut handle); assert_eq!(result.unwrap_err(), revert("unknown selector")); }