Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
pscott committed Aug 28, 2023
1 parent 5445b79 commit 00ef666
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 26 deletions.
1 change: 0 additions & 1 deletion starknet/src/authenticators/eth_sig.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ mod EthSigAuthenticator {
use hash::LegacyHash;



#[storage]
struct Storage {
_domain_hash: u256,
Expand Down
4 changes: 1 addition & 3 deletions starknet/src/authenticators/eth_tx.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ trait IEthTxAuthenticator<TContractState> {
#[starknet::contract]
mod EthTxAuthenticator {
use super::IEthTxAuthenticator;
use starknet::{
ContractAddress, EthAddress, Felt252TryIntoEthAddress, EthAddressIntoFelt252,
};
use starknet::{ContractAddress, EthAddress, Felt252TryIntoEthAddress, EthAddressIntoFelt252,};
use core::{serde::Serde, array::{ArrayTrait, SpanTrait}};
use traits::{PartialEq, TryInto, Into};
use option::OptionTrait;
Expand Down
3 changes: 2 additions & 1 deletion starknet/src/space/space.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ mod Space {
},
utils::{
reinitializable::{Reinitializable}, ReinitializableImpl, bits::BitSetter,
legacy_hash::LegacyHashChoice, legacy_hash::LegacyHashUserAddress, constants::INITIALIZE_SELECTOR
legacy_hash::LegacyHashChoice, legacy_hash::LegacyHashUserAddress,
constants::INITIALIZE_SELECTOR
},
external::ownable::Ownable
};
Expand Down
4 changes: 1 addition & 3 deletions starknet/src/tests/test_space.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,7 @@ mod tests {

#[test]
#[available_gas(10000000000)]
#[should_panic(
expected: ('Proposal has been finalized', 'ENTRYPOINT_FAILED')
)]
#[should_panic(expected: ('Proposal has been finalized', 'ENTRYPOINT_FAILED'))]
fn test__cancel() {
let relayer = contract_address_const::<0x1234>();
let config = setup();
Expand Down
12 changes: 3 additions & 9 deletions starknet/src/tests/vote.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ mod tests {

#[test]
#[available_gas(10000000000)]
#[should_panic(
expected: ('Voting period has not started', 'ENTRYPOINT_FAILED')
)]
#[should_panic(expected: ('Voting period has not started', 'ENTRYPOINT_FAILED'))]
fn vote_too_early() {
let config = setup();
let (factory, space) = deploy(@config);
Expand Down Expand Up @@ -230,9 +228,7 @@ mod tests {

#[test]
#[available_gas(10000000000)]
#[should_panic(
expected: ('Proposal has been finalized', 'ENTRYPOINT_FAILED')
)]
#[should_panic(expected: ('Proposal has been finalized', 'ENTRYPOINT_FAILED'))]
fn vote_finalized_proposal() {
let config = setup();
let (factory, space) = deploy(@config);
Expand Down Expand Up @@ -327,9 +323,7 @@ mod tests {

#[test]
#[available_gas(10000000000)]
#[should_panic(
expected: ('User has no voting power', 'ENTRYPOINT_FAILED')
)]
#[should_panic(expected: ('User has no voting power', 'ENTRYPOINT_FAILED'))]
fn vote_no_voting_power() {
let config = setup();
let (factory, space) = deploy(@config);
Expand Down
11 changes: 2 additions & 9 deletions starknet/src/tests/voting_strategies/erc20_votes.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,7 @@ mod tests {

#[test]
#[available_gas(1000000000)]
#[should_panic(
expected: (
'Votes: future Lookup',
'ENTRYPOINT_FAILED',
)
)]
#[should_panic(expected: ('Votes: future Lookup', 'ENTRYPOINT_FAILED',))]
fn revert_if_queried_at_vote_start() {
let (config, space) = setup_space();
let vanilla_execution_strategy = get_vanilla_execution_strategy();
Expand Down Expand Up @@ -251,9 +246,7 @@ mod tests {

#[test]
#[available_gas(1000000000)]
#[should_panic(
expected: ('User has no voting power', 'ENTRYPOINT_FAILED')
)]
#[should_panic(expected: ('User has no voting power', 'ENTRYPOINT_FAILED'))]
fn no_delegation_means_no_voting_power() {
let (config, space) = setup_space();
let vanilla_execution_strategy = get_vanilla_execution_strategy();
Expand Down

0 comments on commit 00ef666

Please sign in to comment.