Skip to content

Commit

Permalink
[BW]: [Fix] create_proposal_operation::daily_pay should not accept ne…
Browse files Browse the repository at this point in the history
…gative values.
  • Loading branch information
vogel76 authored and Mariusz-Trela committed Apr 25, 2019
1 parent 8e9d2b9 commit ac867ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/protocol/sps_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ void create_proposal_operation::validate()const

FC_ASSERT( end_date > start_date, "end date must be greater than start date" );

FC_ASSERT( daily_pay.amount >= 0, "Daily pay can't be negative value" );
FC_ASSERT( daily_pay.symbol.asset_num == STEEM_ASSET_NUM_SBD, "Daily pay should be expressed in SBD");

FC_ASSERT( !subject.empty(), "subject is required" );
Expand Down

0 comments on commit ac867ed

Please sign in to comment.