Skip to content

Commit

Permalink
Use cw_serde on counter state example
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberHoward committed Oct 10, 2024
1 parent 2da941e commit ebfa5b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contracts-ws/contracts/counter/src/state.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use cosmwasm_schema::cw_serde;

use cosmwasm_std::Addr;
use cw_storage_plus::Item;

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[cw_serde]
pub struct State {
pub count: i32,
pub owner: Addr,
Expand Down

0 comments on commit ebfa5b9

Please sign in to comment.