From ccf2860932c24c973e56cf01f269aa50bc89ec2c Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Sun, 2 Feb 2025 17:20:09 +0100 Subject: [PATCH 1/5] Update primitive_topic.rs --- linting/extra/src/primitive_topic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linting/extra/src/primitive_topic.rs b/linting/extra/src/primitive_topic.rs index 13f91f9a935..58651b47d82 100644 --- a/linting/extra/src/primitive_topic.rs +++ b/linting/extra/src/primitive_topic.rs @@ -179,7 +179,7 @@ impl<'tcx> LateLintPass<'tcx> for PrimitiveTopic { then { topics_impl.items.iter().for_each(|impl_item| { if_chain! { - // We need to extract field patterns from the event sturct matched in the + // We need to extract field patterns from the event struct matched in the // `topics` function to access their inferred types. // Here is the simplified example of the expanded code: // ``` From 0150dd529f4e36ea1b8bf460f81865c50722a3bb Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Sun, 2 Feb 2025 17:20:42 +0100 Subject: [PATCH 2/5] Update env_access.rs --- crates/ink/src/env_access.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ink/src/env_access.rs b/crates/ink/src/env_access.rs index 5d4b52e4c4f..dd46ec25f5b 100644 --- a/crates/ink/src/env_access.rs +++ b/crates/ink/src/env_access.rs @@ -462,7 +462,7 @@ where /// error /// ) /// }) - /// .unwrap_or_else(|error| panic!("Received a `LangError` while instatiating: {:?}", error)) + /// .unwrap_or_else(|error| panic!("Received a `LangError` while instantiating: {:?}", error)) /// } /// # /// # } From 600cd5f55769485ccb73e86490b43c0aee7394b8 Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Sun, 2 Feb 2025 17:23:16 +0100 Subject: [PATCH 3/5] Update mod.rs --- crates/env/src/engine/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/env/src/engine/mod.rs b/crates/env/src/engine/mod.rs index a701e379030..4de06e62569 100644 --- a/crates/env/src/engine/mod.rs +++ b/crates/env/src/engine/mod.rs @@ -205,7 +205,7 @@ mod decode_instantiate_result_tests { } #[test] - fn succesful_dispatch_with_error_from_contract_constructor() { + fn successful_dispatch_with_error_from_contract_constructor() { let return_value = ConstructorResult::Ok(ContractResult::Err(ContractError( "Contract's constructor failed.".to_owned(), ))); From a40810d52e595ef6098c7237dd911227804c79e7 Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Sun, 2 Feb 2025 17:24:14 +0100 Subject: [PATCH 4/5] Update lib.rs --- integration-tests/public/erc20/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/public/erc20/lib.rs b/integration-tests/public/erc20/lib.rs index 2368cd294f2..be9aef5bc2c 100644 --- a/integration-tests/public/erc20/lib.rs +++ b/integration-tests/public/erc20/lib.rs @@ -243,7 +243,7 @@ mod erc20 { let Transfer { from, to, value } = decoded_event; assert_eq!(from, expected_from, "encountered invalid Transfer.from"); assert_eq!(to, expected_to, "encountered invalid Transfer.to"); - assert_eq!(value, expected_value, "encountered invalid Trasfer.value"); + assert_eq!(value, expected_value, "encountered invalid Transfer.value"); let mut expected_topics = Vec::new(); expected_topics.push( @@ -359,7 +359,7 @@ mod erc20 { Some(H160::from([0x01; 20])), 100.into(), ); - // Check the second transfer event relating to the actual trasfer. + // Check the second transfer event relating to the actual transfer. assert_transfer_event( &emitted_events[1], Some(H160::from([0x01; 20])), From 565e32d562bf4da65cff78980c58f38e2fbb3c91 Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Mon, 31 Mar 2025 14:32:33 +0200 Subject: [PATCH 5/5] Update env_access.rs --- crates/ink/src/env_access.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ink/src/env_access.rs b/crates/ink/src/env_access.rs index dd46ec25f5b..5d4b52e4c4f 100644 --- a/crates/ink/src/env_access.rs +++ b/crates/ink/src/env_access.rs @@ -462,7 +462,7 @@ where /// error /// ) /// }) - /// .unwrap_or_else(|error| panic!("Received a `LangError` while instantiating: {:?}", error)) + /// .unwrap_or_else(|error| panic!("Received a `LangError` while instatiating: {:?}", error)) /// } /// # /// # }