Skip to content

Commit

Permalink
test: Fix cw4 test
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Aug 6, 2024
1 parent f9efc81 commit 780fbd6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/interfaces/cw4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub trait Cw4 {

#[cfg(test)]
mod tests {
use cosmwasm_std::{from_json, to_json_binary, Empty};
use cosmwasm_std::{from_json, to_json_binary};

use super::sv::*;

Expand All @@ -90,8 +90,7 @@ mod tests {
let original_msg = Cw4QueryMsg::Admin {};

let serialized_msg = to_json_binary(&original_msg).unwrap();
let serialized_msg: Cw4QueryMsg<Empty, Empty, Empty, Empty, Empty> =
from_json(serialized_msg).unwrap();
let serialized_msg: Cw4QueryMsg = from_json(serialized_msg).unwrap();

assert_eq!(serialized_msg, original_msg);
}
Expand All @@ -110,8 +109,7 @@ mod tests {

#[test]
fn query_from_json() {
let deserialized: Cw4QueryMsg<Empty, Empty, Empty, Empty, Empty> =
from_json(br#"{"admin": {}}"#).unwrap();
let deserialized: Cw4QueryMsg = from_json(br#"{"admin": {}}"#).unwrap();
assert_eq!(deserialized, Cw4QueryMsg::Admin {});
}

Expand Down

0 comments on commit 780fbd6

Please sign in to comment.