diff --git a/cosmwasm/enclaves/shared/contract-engine/src/contract_validation.rs b/cosmwasm/enclaves/shared/contract-engine/src/contract_validation.rs index 5642a3d78..55b31dda7 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); diff --git a/x/compute/internal/types/keys.go b/x/compute/internal/types/keys.go index 4530f8ad5..fee066817 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...)