def METHOD_NAME(sender: str, tx_nonce: Optional[int], state_tx_cnt: Optional[int]) -> None:
    if tx_nonce is None:
        tx_nonce = 0
    if state_tx_cnt is None:
        state_tx_cnt = 0
    if state_tx_cnt > tx_nonce:
        NonceTooLowError.raise_error(sender, tx_nonce, state_tx_cnt)