We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31df592 commit 20d9b10Copy full SHA for 20d9b10
cosmos-sdk-rs/src/cosmwasm.rs
@@ -174,14 +174,9 @@ impl TryFrom<proto::cosmwasm::wasm::v1beta1::MsgInstantiateContract> for MsgInst
174
} else {
175
Some(proto.label)
176
};
177
- let admin = if proto.admin.is_empty() {
178
- None
179
- } else {
180
- Some(proto.admin.parse())
181
- };
182
Ok(MsgInstantiateContract {
183
sender: proto.sender.parse()?,
184
- admin: admin.transpose()?,
+ admin: proto.admin.map(|admin| admin.parse()).transpose()?,
185
code_id: proto.code_id,
186
label,
187
init_msg: proto.init_msg,
0 commit comments