diff --git a/starknet/src/authenticators/eth_tx.cairo b/starknet/src/authenticators/eth_tx.cairo index b651383a..53b4a2ea 100644 --- a/starknet/src/authenticators/eth_tx.cairo +++ b/starknet/src/authenticators/eth_tx.cairo @@ -163,7 +163,7 @@ mod EthTxAuthenticator { fn consume_commit(ref self: ContractState, hash: felt252, sender_address: EthAddress) { let committer_address = self._commits.read(hash); - assert(committer_address.is_zero(), 'Commit not found'); + assert(!committer_address.is_zero(), 'Commit not found'); assert(committer_address == sender_address, 'Invalid sender address'); // Delete the commit to prevent replay attacks. self._commits.write(hash, Zeroable::zero());