From d38e52eabb8708dcefbc7fa05c6f34ddeb3a87fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= <jedrzej.stuczynski@gmail.com> Date: Thu, 1 Feb 2024 16:04:21 +0000 Subject: [PATCH] correctly populate 'updated' and 'msg' fields from proto responses (#451) --- cosmrs/src/cosmwasm/contract_code_history_entry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmrs/src/cosmwasm/contract_code_history_entry.rs b/cosmrs/src/cosmwasm/contract_code_history_entry.rs index eb53bb6b..f9867eec 100644 --- a/cosmrs/src/cosmwasm/contract_code_history_entry.rs +++ b/cosmrs/src/cosmwasm/contract_code_history_entry.rs @@ -34,8 +34,8 @@ impl TryFrom<proto::cosmwasm::wasm::v1::ContractCodeHistoryEntry> for ContractCo }, )?, code_id: proto.code_id, - updated: None, - msg: vec![], + updated: proto.updated.map(TryFrom::try_from).transpose()?, + msg: proto.msg, }) } }