Skip to content

Commit

Permalink
change wording to 'proposal validaton failed'
Browse files Browse the repository at this point in the history
  • Loading branch information
pscott committed Oct 18, 2024
1 parent 8e248b7 commit 0bfc14d
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, 'User cannot create a proposal');
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: ('User cannot create a proposal', '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 0bfc14d

Please sign in to comment.