diff --git a/crates/governance/src/storage/proposal.rs b/crates/governance/src/storage/proposal.rs index 60e49c91508..c8cfd4d1464 100644 --- a/crates/governance/src/storage/proposal.rs +++ b/crates/governance/src/storage/proposal.rs @@ -96,7 +96,13 @@ impl TryFrom for InitProposalData { content: Hash::default(), author: value.proposal.author, r#type: match value.data { - Some(_) => ProposalType::DefaultWithWasm(Hash::default()), + Some(bytes) => { + if bytes.is_empty() { + ProposalType::Default + } else { + ProposalType::DefaultWithWasm(Hash::default()) + } + } None => ProposalType::Default, }, voting_start_epoch: value.proposal.voting_start_epoch,