We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54dc68c commit 71b1f5eCopy full SHA for 71b1f5e
packages/std/src/query/wasm.rs
@@ -50,13 +50,13 @@ impl ContractInfoResponse {
50
/// As a contract developer you should not need this constructor since
51
/// query responses are constructed for you via deserialization.
52
#[doc(hidden)]
53
+ #[deprecated(
54
+ note = "Use ContractInfoResponse::default() and mutate the fields you want to set."
55
+ )]
56
pub fn new(code_id: u64, creator: impl Into<String>) -> Self {
- Self {
- code_id,
- creator: creator.into(),
57
- admin: None,
58
- pinned: false,
59
- ibc_port: None,
60
- }
+ let mut out = ContractInfoResponse::default();
+ out.code_id = code_id;
+ out.creator = creator.into();
+ out
61
}
62
0 commit comments