Skip to content

Commit

Permalink
remove slot is zero check in voting strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
pscott committed Jul 3, 2024
1 parent 1b748c6 commit 134b4a6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion starknet/src/voting_strategies/evm_slot_value.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ mod EvmSlotValueVotingStrategy {
let slot_value = SingleSlotProof::InternalImpl::get_storage_slot(
@state, timestamp, evm_contract_address, slot_key, mpt_proof
);
assert(slot_value.is_non_zero(), 'Slot is zero');

slot_value
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ mod OZVotesStorageProofVotingStrategy {
let checkpoint = SingleSlotProof::InternalImpl::get_storage_slot(
@state, timestamp, evm_contract_address, slot_key, checkpoint_mpt_proof
);
assert(checkpoint.is_non_zero(), 'Slot is zero');

// Verify the checkpoint is indeed the final checkpoint by checking the next slot is zero.
assert(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ mod OZVotesTrace208StorageProofVotingStrategy {
let checkpoint = SingleSlotProof::InternalImpl::get_storage_slot(
@state, timestamp, evm_contract_address, slot_key, checkpoint_mpt_proof
);
assert(checkpoint.is_non_zero(), 'Slot is zero');

// Verify the checkpoint is indeed the final checkpoint by checking the next slot is zero.
assert(
Expand Down

0 comments on commit 134b4a6

Please sign in to comment.