Skip to content

Commit 9b68dee

Browse files
committed
Improve deprecation msg
1 parent f5356df commit 9b68dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/std/src/results/submessages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl From<SubMsgResult> for Result<SubMsgResponse, String> {
204204
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
205205
pub struct SubMsgResponse {
206206
pub events: Vec<Event>,
207-
#[deprecated = "deprecated in the cosmos-sdk in favor of msg_responses"]
207+
#[deprecated = "Deprecated in the Cosmos SDK in favor of msg_responses. If your chain is running on CosmWasm 2.0 or higher, msg_responses will be filled. For older versions, the data field is still needed since msg_responses is empty in those cases."]
208208
pub data: Option<Binary>,
209209
#[serde(default)]
210210
pub msg_responses: Vec<MsgResponse>,

0 commit comments

Comments
 (0)