From 4b8a311c53cc9bfb16e27cdf061ad1dd1ace3c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Sun, 3 Dec 2023 20:59:39 +0000 Subject: [PATCH] correctly populate 'updated' and 'msg' fields from proto responses --- 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 for ContractCo }, )?, code_id: proto.code_id, - updated: None, - msg: vec![], + updated: proto.updated.map(TryFrom::try_from).transpose()?, + msg: proto.msg, }) } }