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 Jun 27, 2024
1 parent 2fb4857 commit a9e6513
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 @@ -59,7 +59,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 @@ -59,7 +59,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 a9e6513

Please sign in to comment.