Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Orlando committed Oct 9, 2023
1 parent a5ab34f commit 9cdaded
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions starknet/src/authenticators/eth_tx.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ mod EthTxAuthenticator {
from_address == self._starknet_commit_address.read().into(), 'Invalid commit address'
);
let sender_address = sender_address.try_into().unwrap();
// Prevents hash being overwritten by a different sender.
assert(self._commits.read((hash, sender_address)) == false, 'Commit already exists');
self._commits.write((hash, sender_address), true);
}
Expand All @@ -187,7 +186,6 @@ mod EthTxAuthenticator {
impl InternalImpl of InternalTrait {
fn consume_commit(ref self: ContractState, hash: felt252, sender_address: EthAddress) {
assert(self._commits.read((hash, sender_address)), 'Commit not found');
// assert(committer_address == sender_address, 'Invalid sender address');
// Delete the commit to prevent replay attacks.
self._commits.write((hash, sender_address), false);
}
Expand Down

0 comments on commit 9cdaded

Please sign in to comment.