Skip to content

Commit

Permalink
Publish MsgInstantiate / Execute responses
Browse files Browse the repository at this point in the history
Add serialiation / deserialization traits to them
  • Loading branch information
maurolacy committed Oct 27, 2021
1 parent 2922cfe commit 6577c8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cw0/src/parse_reply.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use thiserror::Error;

use cosmwasm_std::{Binary, Reply};
Expand All @@ -7,13 +9,13 @@ const WIRE_TYPE_LENGTH_DELIMITED: u8 = 2;
// Up to 9 bytes of varints as a practical limit (https://github.com/multiformats/unsigned-varint#practical-maximum-of-9-bytes-for-security)
const VARINT_MAX_BYTES: usize = 9;

#[derive(Clone, Debug, PartialEq)]
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
pub struct MsgInstantiateContractResponse {
pub contract_address: String,
pub data: Option<Binary>,
}

#[derive(Clone, Debug, PartialEq)]
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
pub struct MsgExecuteContractResponse {
pub data: Option<Binary>,
}
Expand Down

0 comments on commit 6577c8a

Please sign in to comment.