From 64fe2c4a626fb514e4ce948574f0ed0cc7562d68 Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Sun, 2 Feb 2025 21:40:34 +0100 Subject: [PATCH 1/2] Update contract_validation.rs --- .../shared/contract-engine/src/contract_validation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmwasm/enclaves/shared/contract-engine/src/contract_validation.rs b/cosmwasm/enclaves/shared/contract-engine/src/contract_validation.rs index 5642a3d785..55b31dda76 100644 --- a/cosmwasm/enclaves/shared/contract-engine/src/contract_validation.rs +++ b/cosmwasm/enclaves/shared/contract-engine/src/contract_validation.rs @@ -740,12 +740,12 @@ fn get_sdk_messages_from_sign_bytes( ); // Always starts with '\x19Ethereum Signed Message:\n\d+{' - // So we need to find the first occurance of '{' and go from there until the end + // So we need to find the first occurrence of '{' and go from there until the end let start_index = match sign_bytes_as_string.find('{') { Some(start_index) => start_index, None => { warn!( - "SIGN_MODE_EIP_191 failed to find first occurance of '{{' in '{}'", + "SIGN_MODE_EIP_191 failed to find first occurrence of '{{' in '{}'", sign_bytes_as_string ); return Err(EnclaveError::FailedTxVerification); From d09fc29899c8ab5518560bfe19865bc2c39c66b3 Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Sun, 2 Feb 2025 21:41:52 +0100 Subject: [PATCH 2/2] Update keys.go --- x/compute/internal/types/keys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/compute/internal/types/keys.go b/x/compute/internal/types/keys.go index 4530f8ad57..fee0668178 100644 --- a/x/compute/internal/types/keys.go +++ b/x/compute/internal/types/keys.go @@ -40,7 +40,7 @@ var ( KeyLastInstanceID = append(SequenceKeyPrefix, []byte("lastContractId")...) ) -// GetCodeKey constructs the key for retreiving the ID for the WASM code +// GetCodeKey constructs the key for retrieving the ID for the WASM code func GetCodeKey(codeID uint64) []byte { contractIDBz := sdk.Uint64ToBigEndian(codeID) return append(CodeKeyPrefix, contractIDBz...)