diff --git a/starknet/src/execution_strategies/vanilla.cairo b/starknet/src/execution_strategies/vanilla.cairo index 0766a6a9..8a52616c 100644 --- a/starknet/src/execution_strategies/vanilla.cairo +++ b/starknet/src/execution_strategies/vanilla.cairo @@ -38,8 +38,7 @@ mod VanillaExecutionStrategy { #[constructor] fn constructor(ref self: ContractState, quorum: u256) { // TODO: temporary until components are released - let mut state: SimpleQuorumExecutionStrategy::ContractState = - SimpleQuorumExecutionStrategy::unsafe_new_contract_state(); + let mut state = SimpleQuorumExecutionStrategy::unsafe_new_contract_state(); SimpleQuorumExecutionStrategy::initializer(ref state, quorum); } diff --git a/starknet/src/space/space.cairo b/starknet/src/space/space.cairo index 0e9ee514..18c69868 100644 --- a/starknet/src/space/space.cairo +++ b/starknet/src/space/space.cairo @@ -238,7 +238,7 @@ mod Space { ReinitializableImpl::initialize(ref state); //TODO: temporary component syntax - let mut state: Ownable::ContractState = Ownable::unsafe_new_contract_state(); + let mut state = Ownable::unsafe_new_contract_state(); Ownable::initializer(ref state); Ownable::transfer_ownership(ref state, owner); _set_min_voting_duration(ref self, min_voting_duration); @@ -398,7 +398,7 @@ mod Space { fn cancel_proposal(ref self: ContractState, proposal_id: u256) { //TODO: temporary component syntax - let state: Ownable::ContractState = Ownable::unsafe_new_contract_state(); + let state = Ownable::unsafe_new_contract_state(); Ownable::assert_only_owner(@state); let mut proposal = self._proposals.read(proposal_id); assert_proposal_exists(@proposal); @@ -434,7 +434,7 @@ mod Space { fn owner(self: @ContractState) -> ContractAddress { //TODO: temporary component syntax - let state: Ownable::ContractState = Ownable::unsafe_new_contract_state(); + let state = Ownable::unsafe_new_contract_state(); Ownable::owner(@state) } @@ -481,7 +481,7 @@ mod Space { fn update_settings(ref self: ContractState, input: UpdateSettingsCalldata) { //TODO: temporary component syntax - let state: Ownable::ContractState = Ownable::unsafe_new_contract_state(); + let state = Ownable::unsafe_new_contract_state(); Ownable::assert_only_owner(@state); // if not NO_UPDATE @@ -549,14 +549,14 @@ mod Space { fn transfer_ownership(ref self: ContractState, new_owner: ContractAddress) { //TODO: temporary component syntax - let mut state: Ownable::ContractState = Ownable::unsafe_new_contract_state(); + let mut state = Ownable::unsafe_new_contract_state(); Ownable::assert_only_owner(@state); Ownable::transfer_ownership(ref state, new_owner); } fn renounce_ownership(ref self: ContractState) { //TODO: temporary component syntax - let mut state: Ownable::ContractState = Ownable::unsafe_new_contract_state(); + let mut state = Ownable::unsafe_new_contract_state(); Ownable::assert_only_owner(@state); Ownable::renounce_ownership(ref state); } diff --git a/starknet/src/tests/mocks/space_v2.cairo b/starknet/src/tests/mocks/space_v2.cairo index 702d1b50..2d40018b 100644 --- a/starknet/src/tests/mocks/space_v2.cairo +++ b/starknet/src/tests/mocks/space_v2.cairo @@ -18,8 +18,7 @@ mod SpaceV2 { impl SpaceV2 of ISpaceV2 { fn initialize(ref self: ContractState, var: felt252) { // TODO: Temp component syntax - let mut state: Reinitializable::ContractState = - Reinitializable::unsafe_new_contract_state(); + let mut state = Reinitializable::unsafe_new_contract_state(); ReinitializableImpl::initialize(ref state); self._var.write(var); } diff --git a/starknet/src/voting_strategies/eth_balance_of.cairo b/starknet/src/voting_strategies/eth_balance_of.cairo index a8138e8d..e060e0c1 100644 --- a/starknet/src/voting_strategies/eth_balance_of.cairo +++ b/starknet/src/voting_strategies/eth_balance_of.cairo @@ -27,8 +27,7 @@ mod EthBalanceOfVotingStrategy { let slot_index = (*params[1]).into(); // TODO: temporary until components are released - let state: SingleSlotProof::ContractState = - SingleSlotProof::unsafe_new_contract_state(); + let state = SingleSlotProof::unsafe_new_contract_state(); // Get the balance of the voter at the given block timestamp let balance = SingleSlotProof::get_storage_slot( @@ -43,8 +42,7 @@ mod EthBalanceOfVotingStrategy { ref self: ContractState, facts_registry: ContractAddress, l1_headers_store: ContractAddress ) { // TODO: temporary until components are released - let mut state: SingleSlotProof::ContractState = - SingleSlotProof::unsafe_new_contract_state(); + let mut state = SingleSlotProof::unsafe_new_contract_state(); SingleSlotProof::initializer(ref state, facts_registry); } }