Skip to content

Commit

Permalink
check submit proposal tx len == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
huichiaotsou committed Jun 20, 2022
1 parent 7a74d1b commit 00de40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/parse/gov/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func refreshProposalDetails(parseCtx *parser.Context, proposalID uint64, govModu
return err
}

if len(txs) > 1 {
if len(txs) > 1 || len(txs) == 0 {
return fmt.Errorf("expecting only one create proposal transaction, found %d", len(txs))
}

Expand Down

0 comments on commit 00de40d

Please sign in to comment.