Skip to content

Commit

Permalink
Typos, Serialize for QueryMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Oct 21, 2021
1 parent c3c9ab9 commit 173d33e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ fn revoke_permit<S: Storage, A: Api, Q: Querier>(
Ok(HandleResponse {
messages: vec![],
log: vec![],
data: Some(to_binary(&HandleAnswer::RevokePemit { status: Success })?),
data: Some(to_binary(&HandleAnswer::RevokePermit { status: Success })?),
})
}

Expand Down
5 changes: 3 additions & 2 deletions src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ pub enum HandleMsg {
// Permit
RevokePermit {
permit_name: String,
padding: Option<String>,
},
}

Expand Down Expand Up @@ -312,12 +313,12 @@ pub enum HandleAnswer {
},

// Permit
RevokePemit {
RevokePermit {
status: ResponseStatus,
},
}

#[derive(Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum QueryMsg {
TokenInfo {},
Expand Down

0 comments on commit 173d33e

Please sign in to comment.