diff --git a/cosmwasm/enclaves/shared/cosmwasm-types/v0.10/src/types.rs b/cosmwasm/enclaves/shared/cosmwasm-types/v0.10/src/types.rs index 1af8c88fa..587c8d8f4 100644 --- a/cosmwasm/enclaves/shared/cosmwasm-types/v0.10/src/types.rs +++ b/cosmwasm/enclaves/shared/cosmwasm-types/v0.10/src/types.rs @@ -2,7 +2,7 @@ #![allow(unused)] -/// These types are are copied over from the cosmwasm_std package, and must be kept in sync with it. +/// These types are copied over from the cosmwasm_std package, and must be kept in sync with it. /// /// We copy these types instead of directly depending on them, because we require special versions of serde /// inside the enclave, which are different from the versions that cosmwasm_std uses. diff --git a/cosmwasm/enclaves/shared/utils/src/kv_cache.rs b/cosmwasm/enclaves/shared/utils/src/kv_cache.rs index 688abcaf2..c5c9a549e 100644 --- a/cosmwasm/enclaves/shared/utils/src/kv_cache.rs +++ b/cosmwasm/enclaves/shared/utils/src/kv_cache.rs @@ -32,7 +32,7 @@ impl KvCache { self.readable_cache.insert(k.to_vec(), v.to_vec()) } pub fn read(&self, key: &[u8]) -> Option> { - // first to to read from the writeable cache - this will be more updated + // first to read from the writeable cache - this will be more updated if let Some(value) = self.writeable_cache.get(key) { Some(value.clone()) } diff --git a/cosmwasm/packages/sgx-vm/src/instance.rs b/cosmwasm/packages/sgx-vm/src/instance.rs index ce05ab3d5..8419c6e72 100644 --- a/cosmwasm/packages/sgx-vm/src/instance.rs +++ b/cosmwasm/packages/sgx-vm/src/instance.rs @@ -104,7 +104,7 @@ where let api = deps.api; import_obj.extend(imports! { "env" => { - // Reads the database entry at the given key into the the value. + // Reads the database entry at the given key into the value. // Returns 0 if key does not exist and pointer to result region otherwise. // Ownership of the key pointer is not transferred to the host. // Ownership of the value pointer is transferred to the contract.