Skip to content

Commit

Permalink
style(cognitarium): implement Default trait for InstantiateMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamel committed Aug 30, 2023
1 parent cf6df89 commit 47ae927
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 27 deletions.
36 changes: 9 additions & 27 deletions contracts/okp4-cognitarium/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,7 @@ mod tests {
deps.as_mut(),
mock_env(),
info.clone(),
InstantiateMsg {
limits: StoreLimitsInput::default(),
},
InstantiateMsg::default(),
)
.unwrap();

Expand Down Expand Up @@ -488,9 +486,7 @@ mod tests {
deps.as_mut(),
mock_env(),
mock_info("owner", &[]),
InstantiateMsg {
limits: StoreLimitsInput::default(),
},
InstantiateMsg::default(),
)
.unwrap();

Expand Down Expand Up @@ -772,9 +768,7 @@ mod tests {
deps.as_mut(),
mock_env(),
info.clone(),
InstantiateMsg {
limits: StoreLimitsInput::default(),
},
InstantiateMsg::default(),
)
.unwrap();

Expand Down Expand Up @@ -1126,9 +1120,7 @@ mod tests {
deps.as_mut(),
mock_env(),
info.clone(),
InstantiateMsg {
limits: StoreLimitsInput::default(),
},
InstantiateMsg::default(),
)
.unwrap();

Expand Down Expand Up @@ -1382,9 +1374,7 @@ mod tests {
deps.as_mut(),
mock_env(),
info.clone(),
InstantiateMsg {
limits: StoreLimitsInput::default(),
},
InstantiateMsg::default(),
)
.unwrap();

Expand Down Expand Up @@ -1454,9 +1444,7 @@ mod tests {
deps.as_mut(),
mock_env(),
info.clone(),
InstantiateMsg {
limits: StoreLimitsInput::default(),
},
InstantiateMsg::default(),
)
.unwrap();

Expand Down Expand Up @@ -1521,9 +1509,7 @@ mod tests {
deps.as_mut(),
mock_env(),
info.clone(),
InstantiateMsg {
limits: StoreLimitsInput::default(),
},
InstantiateMsg::default(),
)
.unwrap();

Expand Down Expand Up @@ -1588,9 +1574,7 @@ mod tests {
deps.as_mut(),
mock_env(),
info.clone(),
InstantiateMsg {
limits: StoreLimitsInput::default(),
},
InstantiateMsg::default(),
)
.unwrap();

Expand Down Expand Up @@ -1659,9 +1643,7 @@ mod tests {
deps.as_mut(),
mock_env(),
info.clone(),
InstantiateMsg {
limits: StoreLimitsInput::default(),
},
InstantiateMsg::default(),
)
.unwrap();

Expand Down
1 change: 1 addition & 0 deletions contracts/okp4-cognitarium/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::collections::BTreeMap;

/// Instantiate message
#[cw_serde]
#[derive(Default)]
pub struct InstantiateMsg {
/// Limitations regarding store usage.
#[serde(default)]
Expand Down

0 comments on commit 47ae927

Please sign in to comment.