Skip to content

Commit

Permalink
Change proposal validation error message (#635)
Browse files Browse the repository at this point in the history
* change proposal validation error message

* change wording to 'proposal validaton failed'
  • Loading branch information
pscott authored Oct 21, 2024
1 parent 1c8b65d commit 66ff926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion starknet/src/space/space.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ mod Space {
proposal_validation_strategy.params.span(),
user_proposal_validation_params.span()
);
assert(is_valid, 'Proposal is not valid');
assert(is_valid, 'Proposal validation failed');

// The snapshot block timestamp is the start of the voting period
let start_timestamp = info::get_block_timestamp().try_into().unwrap()
Expand Down
2 changes: 1 addition & 1 deletion starknet/src/tests/space/space.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ mod tests {

#[test]
#[available_gas(10000000000)]
#[should_panic(expected: ('Proposal is not valid', 'ENTRYPOINT_FAILED'))]
#[should_panic(expected: ('Proposal validation failed', 'ENTRYPOINT_FAILED'))]
fn propose_failed_validation() {
let config = setup();
let (_, space) = deploy(@config);
Expand Down

0 comments on commit 66ff926

Please sign in to comment.